Skip to content

Commit

Permalink
[Fix #166] Ignore db/schema and bin
Browse files Browse the repository at this point in the history
Since these files are generated by Rails, Rucocop should not
report offenses on them.

Fixes #166
  • Loading branch information
fidalgo committed Dec 13, 2019
1 parent f9224f9 commit b1756fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* [#170](https://github.com/rubocop-hq/rubocop-rails/pull/170): Make `Rails/BulkChangeTable` not suggest combining methods with an intervening block. ([@mvz][])
* [#159](https://github.com/rubocop-hq/rubocop-rails/issues/159): Fix autocorrect for `Rails/EnumHash` when using % arrays notations. ([@ngouy][])

### Changes

* [#166](https://github.com/rubocop-hq/rubocop-rails/issues/166): Add db/schema.rb and bin/* to the excluded files. ([@fidalgo][])

## 2.4.0 (2019-11-27)

### New features
Expand Down Expand Up @@ -115,3 +119,4 @@
[@DNA]: https://github.com/DNA
[@ngouy]: https://github.com/ngouy
[@mvz]: https://github.com/mvz
[@fidalgo]: https://github.com/fidalgo
3 changes: 2 additions & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

AllCops:
Exclude:
- bin/bundle
- bin/*
- db/schema.rb
# What version of Rails is the inspected code using? If a value is specified
# for TargetRailsVersion then it is used. Acceptable values are specificed
# as a float (i.e. 5.1); the patch version of Rails should not be included.
Expand Down

0 comments on commit b1756fe

Please sign in to comment.