forked from rubocop/rubocop-rails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes rubocop#53. This PR fixes a false positive for `Rails/SaveBang` when implicitly return using finder method and creation method connected by `||`. And this PR updates .rubocop_todo.yml with `rubocop --auto_gen_config` to prevent the following offense. ```console % rubocop lib/rubocop/cop/rails/save_bang.rb Inspecting 1 file C Offenses: lib/rubocop/cop/rails/save_bang.rb:100:7: C: Metrics/ClassLength: Class has too many lines. [164/159] class SaveBang < Cop ... ^^^^^^^^^^^^^^^^^^^^ 1 file inspected, 1 offense detected ```
- Loading branch information
Showing
4 changed files
with
25 additions
and
5 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
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