-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
103 lines (95 loc) · 1.98 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
require:
- rubocop-rspec
AllCops:
TargetRubyVersion: 3.2.2
NewCops: enable
Exclude:
- 'db/**/*'
- 'tmp/**/*'
- 'node_modules/**/*'
- 'webpack/**/*'
- 'Gemfile'
- 'script/dirty_cop'
- 'vendor/cache/**/*'
- 'config/**/*'
- 'bin/**/*'
Metrics/AbcSize:
Max: 25 # Default: 15
Layout/LineLength:
Max: 160 # Default: 80
Metrics/MethodLength:
Max: 25 # Default: 10
Metrics/ClassLength:
Max: 150 # Default: 100
Metrics/ModuleLength:
Max: 200 # Default: 100
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
Metrics/CyclomaticComplexity:
Max: 12 # Default: 6
Metrics/PerceivedComplexity:
Max: 14 # Default: 7
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/GlobalVars:
Exclude:
- 'spec/**/*.rb'
Style/Documentation:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/WordArray:
Enabled: false
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: no_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: no_comma
Style/SingleLineBlockParams:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
Style/Lambda:
Enabled: false
Style/RaiseArgs:
EnforcedStyle: compact
Style/RegexpLiteral:
AllowInnerSlashes: true
Style/ParallelAssignment:
Enabled: false
Style/HashSyntax:
EnforcedShorthandSyntax: either
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/CaseIndentation:
Enabled: false
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'spec/**/*.rb'
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*.rb'
Naming/ConstantName:
Enabled: false
Naming/VariableNumber:
Enabled: false
RSpec/MultipleExpectations:
Max: 5
RSpec/NestedGroups:
Max: 5
RSpec/ExampleLength:
Max: 25
RSpec/LetSetup:
Enabled: false
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/InstanceVariable:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/SubjectStub:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/FilePath:
Enabled: false