forked from rubysec/bundler-audit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
86 lines (82 loc) · 3.5 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 2.7
Exclude:
- 'spec/bundle/**/*'
- 'spec/fixtures/database/**/*'
- 'vendor/**/*'
#
# Style
#
Layout/FirstArrayElementIndentation: { EnforcedStyle: consistent }
Layout/FirstHashElementIndentation: { EnforcedStyle: consistent }
Layout/SpaceAroundEqualsInParameterDefault: { EnforcedStyle: no_space }
Style/SymbolArray: { EnforcedStyle: brackets }
Style/PercentLiteralDelimiters:
Enabled: true
PreferredDelimiters:
default: '{}'
'%i': '[]'
'%I': '[]'
'%w': '[]'
'%W': '[]'
#
# Rules that conflict with my style.
#
Metrics: { Enabled: false }
Layout/BeginEndAlignment: { Enabled: false } # Offense count: 1
Layout/BlockAlignment: { Enabled: false } # Offense count: 1
Layout/EmptyLinesAroundClassBody: { Enabled: false } # Offense count: 15
Layout/ExtraSpacing: { Enabled: false } # Offense count: 9
Layout/HashAlignment: { Enabled: false } # Offense count: 3
Layout/SpaceAfterComma: { Enabled: false } # Offense count: 122
Layout/SpaceInsideHashLiteralBraces: { Enabled: false } # Offense count: 8
Lint/MissingSuper: { Enabled: false } # Offense count: 3
Lint/ShadowingOuterLocalVariable: { Enabled: false }
Lint/ConstantDefinitionInBlock: { Exclude: ['spec/cli/formats_spec.rb'] }
Lint/SuppressedException: { Exclude: ['spec/cli_spec.rb'] }
Lint/UnusedBlockArgument: { Enabled: false } # Offense count: 4
Lint/UnusedMethodArgument: { Enabled: false } # Offense count: 6
Naming/RescuedExceptionsVariableName: { Enabled: false } # Offense count: 2
Style/BlockDelimiters: { Enabled: false } # Offense count: 20
Style/CaseEquality: { Exclude: ['lib/bundler/audit/advisory.rb'] }
Style/ClassCheck: { Enabled: false } # Offense count: 4
Style/Documentation: { Enabled: false } # Offense count: 12
Style/GuardClause: { Enabled: false } # Offense count: 1
Style/HashSyntax:
Exclude:
- 'Rakefile'
- 'lib/bundler/audit/task.rb'
Style/IfUnlessModifier: { Enabled: false } # Offense count: 14
Style/MethodCallWithoutArgsParentheses: { Enabled: false } # Offense count: 1
Style/MultilineBlockChain: { Exclude: ['spec/**/*'] } # Offense count: 6
Style/MutableConstant: { Enabled: false } # Offense count: 4
Style/ParenthesesAroundCondition: { Enabled: false } # Offense count: 1
Style/RedundantBegin: { Exclude: ['spec/cli_spec.rb'] } # Offense count: 1
Style/RedundantReturn: { Enabled: false } # Offense count: 6
Style/SpecialGlobalVars: { Enabled: false } # Offense count: 5
Style/StringLiterals: { Enabled: false } # Offense count: 333
Style/StructInheritance: { Enabled: false } # Offense count: 1
Style/UnlessElse: { Enabled: false } # Offense count: 1
Style/WordArray: { Enabled: false } # Offense count: 1
Style/Lambda: { Enabled: false } # Offense count: 2
Style/SafeNavigation: { Enabled: false } # Offense count: 2
Lint/IneffectiveAccessModifier: { Enabled: false } # Offense count: 1
Gemspec/DuplicatedAssignment:
Exclude:
- 'bundler-audit.gemspec'
#
# Rules that may be disabled in the future.
#
# Layout/SpaceInsideParens: { Enabled: false }
# Layout/TrailingWhitespace: { Enabled: false }
#
# Rules that I want to fully enabled in the future.
#
Style/DoubleNegation: { Exclude: ['spec/spec_helper.rb'] } # Offense count: 1
Style/EmptyMethod: { Exclude: ['spec/cli/formats_spec.rb'] } # Offense count: 2
Style/ExpandPathArguments: { Enabled: false } # Offense count: 5
Style/FrozenStringLiteralComment: { Enabled: false } # Offense count: 42
Style/MixinUsage: { Exclude: ['spec/spec_helper.rb'] } # Offense count: 1
Layout/LineLength: { Enabled: false }