-
-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get useful feedback from Rubocop Metrics cops
One of the biggest pros of linters like Rubocop is to get valuable feedback to help write better code. The way we have Rubocop configured now we don't prevent new code from adhere improved code quality and this is specially important when touching code that already suffers from complexity. Without all Rubocop's Metrics cops enabled there's no way to get this insights and write better code. This enables them while regenerating the `.rubocop_todo.yml` to hide the current violations. So, next time we touch existing code that we think could be simpler, we should go to `.rubocop_todo.yml` and remove any occurrences of the file in question. This way we could Rubocop's feedback right in the editor. This is tremendously helpful when refactoring. It shows you where to start.
- Loading branch information
1 parent
62bebdb
commit 0ac16ce
Showing
4 changed files
with
165 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.