You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug in the Rails/ApplicationRecord cop or in rubocop itself
Expected behavior
Default exclude from the cop should always be considered
Actual behavior
I get complaints about
Rails/ApplicationRecord: Models should subclass ApplicationRecord.
in some spec files. After bundle exec rubocop --auto-gen-conf I got the same complaints about files in db/migrate/ directory, that should be excluded since #1349.
But because rubocop-rails own config already specifies a inherit_mode, it falls through. I don't know what the appropriate fix would be to show this warning, if even possible.
Not sure if this is a bug in the Rails/ApplicationRecord cop or in rubocop itself
Expected behavior
Default exclude from the cop should always be considered
Actual behavior
I get complaints about
in some spec files. After
bundle exec rubocop --auto-gen-conf
I got the same complaints about files indb/migrate/
directory, that should be excluded since #1349.Generate config in
.rubocop_todo.yml
Steps to reproduce the problem
Rails/ApplicationModel
should ignoredb/migrate/**
#1342 for example)Rails/ApplicationRecord
excluding any file you wantRuboCop version
The text was updated successfully, but these errors were encountered: