mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-22 14:53:15 +00:00
6267759607
There are many spots throughout the codebase which are showing as covered by specs in the simplecov output -- but which are not actually run, because they are on the same line as a guard clause. I plan on fixing some of these issues, but don't want to keep triggering this rubocop style violation. My preference would be that we use the PR review process to identify places where a guard clause might be appropriate, but that we leave this cop turned off by default.
98 lines
1.4 KiB
YAML
98 lines
1.4 KiB
YAML
Rails:
|
|
Enabled: true
|
|
|
|
Style/PerlBackrefs:
|
|
AutoCorrect: false
|
|
|
|
Style/ClassAndModuleChildren:
|
|
Enabled: false
|
|
|
|
Metrics/BlockNesting:
|
|
Max: 2
|
|
|
|
Metrics/LineLength:
|
|
AllowURI: true
|
|
Enabled: false
|
|
|
|
Metrics/MethodLength:
|
|
CountComments: false
|
|
Max: 10
|
|
|
|
Metrics/AbcSize:
|
|
Max: 100
|
|
|
|
Metrics/BlockNesting:
|
|
Max: 3
|
|
|
|
Metrics/ClassLength:
|
|
CountComments: false
|
|
Max: 200
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 15
|
|
|
|
Metrics/MethodLength:
|
|
Max: 55
|
|
|
|
Metrics/ModuleLength:
|
|
CountComments: false
|
|
Max: 200
|
|
|
|
Metrics/PerceivedComplexity:
|
|
Max: 10
|
|
|
|
Metrics/ParameterLists:
|
|
Max: 4
|
|
CountKeywordArgs: true
|
|
|
|
Style/AccessModifierIndentation:
|
|
EnforcedStyle: indent
|
|
|
|
Style/CollectionMethods:
|
|
Enabled: true
|
|
PreferredMethods:
|
|
find_all: 'select'
|
|
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
Style/DoubleNegation:
|
|
Enabled: true
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
Enabled: true
|
|
|
|
Style/SpaceInsideHashLiteralBraces:
|
|
EnforcedStyle: space
|
|
|
|
Style/TrailingCommaInLiteral:
|
|
EnforcedStyleForMultiline: 'comma'
|
|
|
|
Style/RegexpLiteral:
|
|
Enabled: false
|
|
|
|
Style/Lambda:
|
|
Enabled: false
|
|
|
|
Style/GuardClause:
|
|
Enabled: false
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
Enabled: false
|
|
|
|
Bundler/OrderedGems:
|
|
Enabled: false
|
|
|
|
AllCops:
|
|
TargetRubyVersion: 2.3
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'db/**/*'
|
|
- 'app/views/**/*'
|
|
- 'config/**/*'
|
|
- 'bin/*'
|
|
- 'Rakefile'
|
|
- 'node_modules/**/*'
|
|
- 'Vagrantfile'
|
|
- 'vendor/**/*'
|