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
[#8362] Display correctable offenses in summary #8496
[#8362] Display correctable offenses in summary #8496
Conversation
"#{files} inspected, #{offenses} detected, #{corrections} corrected" | ||
if @correctable_count.positive? | ||
"#{files} inspected, #{offenses} detected, #{corrections} corrected,"\ | ||
" #{correctable} correctable" |
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'd probably use auto-correctable
here, so it's clearer we're talking about offenses RuboCop can fix itself.
I like a lot the proposed change! Nicely done! I'll likely merge it after cutting 0.89.1, unless someone has any objections. |
Great, thanks for your review ❤️. Glad I can help. Btw, do you have any reviews on this @marcandre? Implemented based on your idea in the issue. |
Great, thanks for addressing this 😄 |
Good idea! |
CHANGELOG.md
Outdated
@@ -15,6 +15,7 @@ | |||
### Changes | |||
|
|||
* [#8487](https://github.com/rubocop-hq/rubocop/pull/8487): Detect `<` and `>` as comparison operators in `Style/ConditionalAssignment` cop. ([@biinari][]) | |||
* [#8362](https://github.com/rubocop-hq/rubocop/issues/8362): Add numbers of correctable offenses to summary. ([@nguyenquangminh0711][]) |
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.
You'll have to move this under master
, as I just cut 0.89.1.
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.
Done. Sorry, I'm not aware that you cut a new relase some couple of hours ago
024bd70
to
fcfe856
Compare
Thanks for tackling this! 🙇♂️ |
Thank you @nguyenquangminh0711 for fulfilling my wish! ❤️ |
Solve #8362
When doing investigation only, without
-a
. ItWhen running safe corrector:
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).bundle exec rake default
. It executes all tests and RuboCop for itself, and generates the documentation.