-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add regex filters #589
Add regex filters #589
Changes from 2 commits
a0b14a1
ddc1008
5f88bb5
e31bce9
7250a70
b4ca146
cc8b81d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,8 +82,7 @@ def initialize(filename, coverage) | |
|
||
# The path to this source file relative to the projects directory | ||
def project_filename | ||
project_dir = File.dirname(File.expand_path(File.basename(__FILE__))) | ||
@filename.sub(/^#{project_dir}/, "") | ||
@filename.sub(/^#{SimpleCov.root}/, "") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm not too sure but I think it looks good 👍 In the future though, would be preferred to have unrelated changes for other issues etc. in their own PR so they don't get too big and stay more focussed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, but this change was kind of required for the regex. Without it the regex would be matching the full path, which probably nobody would understand. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I see, didn't make that connection in my head. Thanks! |
||
end | ||
|
||
# The source code for this file. Aliased as :source | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍