-
Notifications
You must be signed in to change notification settings - Fork 7
/
.rubocop.yml
125 lines (116 loc) · 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
---
require:
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.3
Gemspec/DeprecatedAttributeAssignment: { Enabled: true }
Gemspec/RequireMFA: { Enabled: true }
Layout/ArgumentAlignment: { EnforcedStyle: with_fixed_indentation }
Layout/CaseIndentation: { EnforcedStyle: end }
Layout/EndAlignment: { EnforcedStyleAlignWith: start_of_line }
Layout/FirstArgumentIndentation: { EnforcedStyle: consistent }
Layout/FirstArrayElementIndentation: { EnforcedStyle: consistent }
Layout/FirstHashElementIndentation: { EnforcedStyle: consistent }
Layout/LineContinuationLeadingSpace: { Enabled: true }
Layout/LineContinuationSpacing: { Enabled: true }
Layout/LineEndStringConcatenationIndentation: { Enabled: true }
Layout/LineLength: { Max: 120 }
Layout/MultilineMethodCallIndentation: { EnforcedStyle: indented }
Layout/ParameterAlignment: { EnforcedStyle: with_fixed_indentation }
Layout/RescueEnsureAlignment: { Enabled: false }
Layout/SpaceBeforeBrackets: { Enabled: true }
Lint/AmbiguousAssignment: { Enabled: true }
Lint/AmbiguousOperatorPrecedence: { Enabled: true }
Lint/AmbiguousRange: { Enabled: true }
Lint/ConstantOverwrittenInRescue: { Enabled: true }
Lint/DeprecatedConstants: { Enabled: true }
Lint/DuplicateBranch: { Enabled: true }
Lint/DuplicateRegexpCharacterClassElement: { Enabled: true }
Lint/EmptyBlock: { Enabled: true }
Lint/EmptyClass: { Enabled: true }
Lint/EmptyInPattern: { Enabled: true }
Lint/IncompatibleIoSelectWithFiberScheduler: { Enabled: true }
Lint/LambdaWithoutLiteralBlock: { Enabled: true }
Lint/NoReturnInBeginEndBlocks: { Enabled: true }
Lint/NonAtomicFileOperation: { Enabled: true }
Lint/NumberedParameterAssignment: { Enabled: true }
Lint/OrAssignmentToConstant: { Enabled: true }
Lint/RaiseException: { Enabled: true }
Lint/RedundantDirGlobSort: { Enabled: true }
Lint/RefinementImportMethods: { Enabled: true }
Lint/RequireRangeParentheses: { Enabled: true }
Lint/RequireRelativeSelfPath: { Enabled: true }
Lint/StructNewOverride: { Enabled: true }
Lint/SymbolConversion: { Enabled: true }
Lint/ToEnumArguments: { Enabled: true }
Lint/TripleQuotes: { Enabled: true }
Lint/UnexpectedBlockArity: { Enabled: true }
Lint/UnmodifiedReduceAccumulator: { Enabled: true }
Lint/UselessRuby2Keywords: { Enabled: true }
RSpec/BeEq: { Enabled: true }
RSpec/BeNil: { Enabled: true }
RSpec/Capybara/SpecificMatcher: { Enabled: true }
RSpec/ChangeByZero: { Enabled: true }
RSpec/ExampleLength: { Enabled: false }
RSpec/ExcessiveDocstringSpacing: { Enabled: true }
RSpec/FactoryBot/SyntaxMethods: { Enabled: true }
RSpec/FilePath: { Enabled: false }
RSpec/IdenticalEqualityAssertion: { Enabled: true }
RSpec/MessageSpies: { Enabled: false }
RSpec/MultipleExpectations: { Enabled: false }
RSpec/MultipleMemoizedHelpers: { Enabled: false }
RSpec/NamedSubject: { Enabled: false }
RSpec/Rails/AvoidSetupHook: { Enabled: true }
RSpec/Rails/HaveHttpStatus: { Enabled: true }
RSpec/SubjectDeclaration: { Enabled: true }
RSpec/SubjectStub: { Enabled: false }
RSpec/VerifiedDoubleReference: { Enabled: true }
Metrics/AbcSize: { Max: 40 }
Metrics/BlockLength: { Enabled: false }
Metrics/ClassLength: { Enabled: false }
Metrics/CyclomaticComplexity: { Enabled: false }
Metrics/MethodLength: { Max: 30 }
Metrics/PerceivedComplexity: { Enabled: false }
Naming/BlockForwarding: { Enabled: true }
Naming/MethodParameterName: { MinNameLength: 1 }
Security/CompoundHash: { Enabled: true }
Security/IoMethods: { Enabled: true }
Style/ArgumentsForwarding: { Enabled: true }
Style/ClassEqualityComparison: { Enabled: false }
Style/CollectionCompact: { Enabled: true }
Style/DocumentDynamicEvalDefinition: { Enabled: true }
Style/Documentation: { Enabled: false }
Style/EmptyHeredoc: { Enabled: true }
Style/EmptyMethod: { EnforcedStyle: expanded }
Style/EndlessMethod: { Enabled: true }
Style/EnvHome: { Enabled: true }
Style/FetchEnvVar: { Enabled: true }
Style/FileRead: { Enabled: true }
Style/FileWrite: { Enabled: true }
Style/FrozenStringLiteralComment: { Enabled: true, EnforcedStyle: always }
Style/GuardClause: { Enabled: false }
Style/HashConversion: { Enabled: true }
Style/HashEachMethods: { Enabled: true }
Style/HashExcept: { Enabled: true }
Style/HashTransformKeys: { Enabled: false }
Style/HashTransformValues: { Enabled: false }
Style/IfUnlessModifier: { Enabled: false }
Style/IfWithBooleanLiteralBranches: { Enabled: true }
Style/InPatternThen: { Enabled: true }
Style/MapCompactWithConditionalBlock: { Enabled: true }
Style/MapToHash: { Enabled: true }
Style/MultilineInPatternThen: { Enabled: true }
Style/NegatedIfElseCondition: { Enabled: true }
Style/NestedFileDirname: { Enabled: true }
Style/NilLambda: { Enabled: true }
Style/NumberedParameters: { Enabled: true }
Style/NumberedParametersLimit: { Enabled: true }
Style/ObjectThen: { Enabled: true }
Style/OpenStructUse: { Enabled: true }
Style/QuotedSymbols: { Enabled: true }
Style/RedundantArgument: { Enabled: true }
Style/RedundantInitialize: { Enabled: true }
Style/RedundantSelfAssignmentBranch: { Enabled: true }
Style/SelectByRegexp: { Enabled: true }
Style/StringChars: { Enabled: true }
Style/SwapValues: { Enabled: true }