Skip to content

Instantly share code, notes, and snippets.

@miharekar
Last active January 4, 2024 14:31
Show Gist options
  • Save miharekar/2ef2b0ae9e4274307ab2dbe67516122e to your computer and use it in GitHub Desktop.
Save miharekar/2ef2b0ae9e4274307ab2dbe67516122e to your computer and use it in GitHub Desktop.
My RuboCop standard
inherit_gem:
rubocop-rails-omakase: rubocop.yml
require:
- rubocop-performance
- rubocop-rails
AllCops:
NewCops: enable
TargetRubyVersion: 3.3
Exclude:
- db/schema.rb
- bin/*
Bundler/OrderedGems:
Enabled: true
Layout/ClassStructure:
Enabled: true
Layout/EmptyLineAfterGuardClause:
Enabled: true
Layout/SpaceInsideArrayLiteralBrackets:
EnforcedStyle: no_space
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Performance/AncestorsInclude:
Enabled: true
Performance/ArraySemiInfiniteRangeSlice:
Enabled: true
Performance/CaseWhenSplat:
Enabled: true
Performance/Casecmp:
Enabled: true
Performance/CollectionLiteralInLoop:
Enabled: true
Performance/DeletePrefix:
Enabled: true
Performance/DeleteSuffix:
Enabled: true
Performance/IoReadlines:
Enabled: true
Performance/MapCompact:
Enabled: true
Performance/MethodObjectAsBlock:
Enabled: true
Performance/OpenStruct:
Enabled: true
Performance/RedundantBlockCall:
Enabled: true
Performance/RedundantEqualityComparisonBlock:
Enabled: true
Performance/SelectMap:
Enabled: true
Performance/StringInclude:
Enabled: true
Performance/Sum:
Enabled: true
Performance/TimesMap:
Enabled: true
Rails/SaveBang:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Style/IfUnlessModifier:
Enabled: true
Style/Send:
Enabled: true
Style/SymbolArray:
Enabled: true
Style/WordArray:
Enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment