123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- require:
- - rubocop-rails
- AllCops:
- TargetRubyVersion: 2.3
- Exclude:
- - 'spec/**/*'
- - 'db/**/*'
- - 'app/views/**/*'
- - 'config/**/*'
- - 'bin/*'
- - 'Rakefile'
- - 'node_modules/**/*'
- - 'Vagrantfile'
- - 'vendor/**/*'
- - 'lib/json_ld/*'
- - 'lib/templates/**/*'
- Bundler/OrderedGems:
- Enabled: false
- Layout/AccessModifierIndentation:
- EnforcedStyle: indent
- Layout/EmptyLineAfterMagicComment:
- Enabled: false
- Layout/SpaceInsideHashLiteralBraces:
- EnforcedStyle: space
- Metrics/AbcSize:
- Max: 100
- Metrics/BlockLength:
- Max: 35
- Exclude:
- - 'lib/tasks/**/*'
- Metrics/BlockNesting:
- Max: 3
- Metrics/ClassLength:
- CountComments: false
- Max: 300
- Metrics/CyclomaticComplexity:
- Max: 25
- Metrics/LineLength:
- AllowURI: true
- Enabled: false
- Metrics/MethodLength:
- CountComments: false
- Max: 55
- Metrics/ModuleLength:
- CountComments: false
- Max: 200
- Metrics/ParameterLists:
- Max: 5
- CountKeywordArgs: true
- Metrics/PerceivedComplexity:
- Max: 20
- Naming/MemoizedInstanceVariableName:
- Enabled: false
- Rails:
- Enabled: true
- Rails/EnumHash:
- Enabled: false
- Rails/HasAndBelongsToMany:
- Enabled: false
- Rails/SkipsModelValidations:
- Enabled: false
- Rails/HttpStatus:
- Enabled: false
- Rails/Exit:
- Exclude:
- - 'lib/mastodon/*'
- - 'lib/cli.rb'
- Rails/HelperInstanceVariable:
- Enabled: false
- Style/ClassAndModuleChildren:
- Enabled: false
- Style/CollectionMethods:
- Enabled: true
- PreferredMethods:
- find_all: 'select'
- Style/Documentation:
- Enabled: false
- Style/DoubleNegation:
- Enabled: true
- Style/FormatStringToken:
- Enabled: false
- Style/FrozenStringLiteralComment:
- Enabled: true
- Style/GuardClause:
- Enabled: false
- Style/Lambda:
- Enabled: false
- Style/PercentLiteralDelimiters:
- PreferredDelimiters:
- '%i': '()'
- '%w': '()'
- Style/PerlBackrefs:
- AutoCorrect: false
- Style/RegexpLiteral:
- Enabled: false
- Style/SymbolArray:
- Enabled: false
- Style/TrailingCommaInArrayLiteral:
- EnforcedStyleForMultiline: 'comma'
- Style/TrailingCommaInHashLiteral:
- EnforcedStyleForMultiline: 'comma'
|