-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrubocop.yml
110 lines (102 loc) · 4 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#
# Ronin rubocop configuration.
#
inherit_mode:
merge:
- Exclude
- Include
AllCops:
NewCops: disable
#
# Common Ronin style rules:
#
Layout/FirstArrayElementIndentation: { Exclude: ['spec/**/*'] }
Layout/LineLength: { Enabled: false }
Layout/SpaceAroundEqualsInParameterDefault: { EnforcedStyle: 'no_space' }
Lint/ConstantDefinitionInBlock: { Exclude: ['spec/**/*'] }
Metrics: { Enabled: false }
Style/SymbolArray: { EnforcedStyle: 'brackets' }
Style/IfInsideElse: { Enabled: false }
Style/PercentLiteralDelimiters:
Enabled: true
PreferredDelimiters:
default: '{}'
'%i': '[]'
'%I': '[]'
'%w': '[]'
'%W': '[]'
Style/UnlessElse: { Enabled: false }
Bundler/OrderedGems: { Enabled: false }
Style/Next: { Enabled: false }
Style/HashSyntax: { Enabled: false }
Naming/PredicateName: { Enabled: false }
Naming/BlockForwarding: { Enabled: false }
Naming/RescuedExceptionsVariableName: { Enabled: false }
Naming/MethodParameterName: { Exclude: ['spec/**/*.rb'] }
Lint/ReturnInVoidContext: { Enabled: false }
Lint/NoReturnInBeginEndBlocks: { Enabled: false }
Gemspec/DeprecatedAttributeAssignment: { Enabled: false }
Layout/EmptyLinesAroundClassBody: { Enabled: false }
Layout/EmptyLineAfterMagicComment: { Enabled: false }
Layout/FirstArgumentIndentation: { Enabled: false }
Layout/BeginEndAlignment: { Enabled: false }
Layout/RescueEnsureAlignment: { Enabled: false }
Layout/HashAlignment: { Enabled: false }
Layout/SpaceAfterComma: { Enabled: false }
Layout/SpaceInsideParens: { Enabled: false }
Layout/SpaceInsideHashLiteralBraces: { Enabled: false }
Style/MultilineBlockChain: { Enabled: false }
Style/NumericLiterals: { Enabled: false }
Style/RedundantInterpolation: { Enabled: false }
Style/FormatString: { Enabled: false }
Style/RedundantSelf: { Enabled: false }
Style/FetchEnvVar: { Enabled: false }
Style/BlockDelimiters: { Enabled: false }
Style/ClassCheck: { Enabled: false }
Style/FrozenStringLiteralComment: { Exclude: ['spec/**/*'] }
Style/GuardClause: { Enabled: false }
Style/IfUnlessModifier: { Enabled: false }
Style/SpecialGlobalVars: { Enabled: false }
Style/GlobalStdStream: { Exclude: ['spec/**/*'] }
Lint/ElseLayout: { Enabled: false }
Layout/ExtraSpacing:
AllowForAlignment: true
AllowBeforeTrailingComments: true
ForceEqualSignAlignment: true
Lint/EmptyClass: { Exclude: ['spec/**/*'] }
Lint/SuppressedException: { AllowComments: true }
Lint/UnusedMethodArgument: { Enabled: false }
Lint/UnusedBlockArgument: { Enabled: false }
Style/AccessorGrouping: { Enabled: false }
Style/KeywordParametersOrder: { Enabled: false }
Style/Lambda: { EnforcedStyle: 'literal' }
Style/MutableConstant: { Enabled: false }
Style/RedundantReturn: { Enabled: false }
Style/SafeNavigation: { Enabled: false }
Style/WordArray: { Enabled: false }
Layout/ParameterAlignment: { Enabled: false }
Layout/BlockAlignment: { Enabled: false }
Style/EmptyMethod: { Enabled: false }
Style/NumericPredicate: { Enabled: false }
Style/OptionalArguments: { Enabled: false }
Style/ParenthesesAroundCondition: { Enabled: false }
Style/PreferredHashMethods: { EnforcedStyle: 'verbose' }
Style/QuotedSymbols: { EnforcedStyle: 'double_quotes' }
Style/RedundantRegexpEscape: { Enabled: false }
Style/RescueStandardError: { Enabled: false }
Style/SoleNestedConditional: { Enabled: false }
Layout/AssignmentIndentation: { Enabled: false }
Style/StringLiterals: { Enabled: false }
Layout/SpaceBeforeComma: { Enabled: false }
Style/ReturnNilInPredicateMethodDefinition: { Enabled: false }
Style/RedundantParentheses: { Enabled: false }
# rubocop cannot tell that rubygems_mfa_required is enabled in gemspec.yml
Gemspec/RequireMFA: { Enabled: false }
# make an exception for our gemspec code
Gemspec/DuplicatedAssignment: { Exclude: ['ronin*.gemspec'] }
# use explicit kwargs for YARD documentation
Style/ArgumentsForwarding: { Enabled: false }
# I have been bit by implicit `super` argument/block passing in the past
Style/SuperArguments: { Enabled: false }
# bitwise operations are more understandable than Integer#allbits? / #nobits?
Style/BitwisePredicate: { Enabled: false }