Skip to content

Commit

Permalink
[Fix rubocop#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 rubocop#166
  • Loading branch information
fidalgo committed Dec 6, 2019
1 parent 8d48d8d commit a46206b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* [#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 to the excluded files. ([@fidalgo])

## 2.4.0 (2019-11-27)

### New features
Expand Down
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 a46206b

Please sign in to comment.