Skip to content

Commit

Permalink
Disable Rails/ContentTag
Browse files Browse the repository at this point in the history
This is actually a false positive as mentioned in rubocop/rubocop-rails#260, so let's disable it. I think `content_tag(:div)` is more readable than `tag.div`. There's a discussion to be had, but we can just allow both.
  • Loading branch information
fschwahn authored Mar 19, 2021
1 parent 2e5e0fc commit 7da8ab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Metrics/MethodLength:
Enabled: false
Performance/Casecmp:
Enabled: false
Rails/ContentTag:
Enabled: false
Rails/Delegate:
Enabled: false
Rails/DynamicFindBy:
Expand Down

0 comments on commit 7da8ab8

Please sign in to comment.