Skip to content

Commit

Permalink
Refs #36998 - disable Rails/ContentTag cop
Browse files Browse the repository at this point in the history
The cop is buggy before rubocop-rails 2.12.0 [1][2], but to get that
we'd need a newer theforeman-rubocop, which generates more offenses than
I am willing to fix today. Disable the cop like it was disabled in
foreman_ansible too [3].

[1] rubocop/rubocop-rails#260
[2] rubocop/rubocop-rails#526
[3] theforeman/foreman_ansible#357

(cherry picked from commit 98c9fee)
  • Loading branch information
evgeni authored and dosas committed Apr 11, 2024
1 parent 4fc8898 commit 6666380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inherit_from:
Rails:
Enabled: true

Rails/ContentTag:
Enabled: false

AllCops:
Exclude:
- db/migrate/20131014135042_katello_tables.rb
Expand Down

0 comments on commit 6666380

Please sign in to comment.