-
Notifications
You must be signed in to change notification settings - Fork 1.4k
github: introduce RuboCop minimum rules (Security & Performance check) #5012
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
Conversation
6c8c00d
to
28f5a04
Compare
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.
👍🏻
Thanks! |
This adds a check on security and performance, right? |
Done! |
**Which issue(s) this PR fixes**: * For #5012 **What this PR does / why we need it**: Refactor code for #5012 **Docs Changes**: Not needed. **Release Note**: Not needed because this is new code for v1.19. Signed-off-by: Daijiro Fukuda <[email protected]>
The regression has been fixed! |
Guard code regression such as follows: Offenses: test/plugin/test_buf_file.rb:26:29: C: [Correctable] Performance/StringIdentifierArgument: Use :@Write instead of "@Write". instance_variable_set("@Write", block) ^^^^^^^^ test/plugin/test_buf_file_single.rb:43:29: C: [Correctable] Performance/StringIdentifierArgument: Use :@Write instead of "@Write". instance_variable_set("@Write", block) ^^^^^^^^ Signed-off-by: Kentaro Hayashi <[email protected]>
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.
Thanks!
Which issue(s) this PR fixes:
Fixes #
What this PR does / why we need it:
Enable Security & Performance check with RuboCop.
Guard code regression such as follows:
Above trivial regression was introduced via #4986
Docs Changes:
N/A
Release Note:
N/A