-
Notifications
You must be signed in to change notification settings - Fork 113
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 rubocop-disable_syntax #11513
base: main
Are you sure you want to change the base?
Add rubocop-disable_syntax #11513
Conversation
.rubocop.yml
Outdated
|
||
Style/DisableSyntax: | ||
DisableSyntax: | ||
- unless |
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.
YES
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 don't actually mind unless
, but I don't oppose this change either.
I was warned at a previous job that "people will hurt you" when I wrote an unless... else
though. 😉 (unless !something
is also cruel.)
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 size of this PR seems to argue that it's well-entrenched and should maybe stay too?)
Description: Limit lines to 100 characters. | ||
Description: Limit lines to 120 characters. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits | ||
Enabled: true | ||
Max: 100 | ||
Max: 120 |
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 am happy enough with 100. But I wanted to point out we do have our JS files with a matching 100, if we change this I think we should change them together to keep the whole codebase consistent
Line 4 in 74f0ff0
"printWidth": 100, |
changelog: Internal, Maintenance, Change Rubocop rules
0ccae77
to
e49f4a1
Compare
e49f4a1
to
1b26c22
Compare
🛠 Summary of changes
This is a proof-of-concept intended to start discussion about changing some of our Rubocop rules