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
Rubocop: test/* #4947
Rubocop: test/* #4947
Conversation
"markdown" => "kramdown", | ||
:permalink => "date", | ||
"baseurl" => "/", | ||
:include => [".htaccess"], |
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.
This should be %w(.htaccess), did it not throw an error for that?
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.
No sir, it did not.
✅ Rubocop Approves |
@@ -1,23 +1,25 @@ | |||
require 'helper' | |||
# rubocop:disable Metrics/ClassLength |
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.
I wonder if we should just disable Metrics/ClassLength
for all of test/
?
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.
The only way to do that would be to exclude all of tests from the metrics (I'm not against this, I wonder what @parkr thinks?) Other than that there is no way other than by file.
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.
I believe we can disable just this metric from .rubocop.yml
If you don’t mind, I’ll give it a shot
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.
Yeah, I say go for it.
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.
@pathawks Yep, you can safely exclude all of test/
from Metrics/ClassLength
. I still would like them tested for the other cops as they're arguably the worst part of our codebase 😆
These merge conflicts are killing me 😭 |
haha, yeah that'll happen when you send a million pull requests :P |
@@ -68,6 +57,7 @@ Metrics/ClassLength: | |||
Max: 240 | |||
Exclude: | |||
- !ruby/regexp /features\/.*.rb$/ | |||
- !ruby/regexp /test\/.*.rb$/ |
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.
Yep, you can safely exclude all of
test/
fromMetrics/ClassLength
.
You got it, boss 👍
@pathawks ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ @jekyllbot: merge +dev |
#4885