Skip to content

Commit

Permalink
Add a few "groups" (Services, ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Michel Garnier committed Sep 27, 2021
1 parent df4ca35 commit c8e9e46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/reverse_coverage/formatters/html/formatter.rb
Expand Up @@ -65,14 +65,18 @@ def grouped(files)
grouped = {}
grouped_files = []

# TODO Someday / Maybe. Make this list configurable
groups = {
'Controllers' => %r{/app/controllers},
'Channels' => %r{/app/channels},
'Models' => %r{/app/models},
'Mailers' => %r{/app/mailers},
'Helpers' => %r{/app/helpers},
'Jobs' => %r{/app/jobs|/app/workers},
'Libraries' => %r{/lib/}
'Libraries' => %r{/lib/},
'Interactors' => %r{/app/interactors},
'Services' => %r{/app/services},
'Validators' => %r{/app/validators},
}

groups.each do |name, filter|
Expand Down

0 comments on commit c8e9e46

Please sign in to comment.