-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
86 lines (63 loc) · 1.57 KB
/
.rubocop.yml
File metadata and controls
86 lines (63 loc) · 1.57 KB
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
plugins:
- rubocop-on-rbs
AllCops:
TargetRubyVersion: 3.3
NewCops: enable
SuggestExtensions: false
Exclude:
- "_benchmark/**/*"
- "ruby/testdata/example/vendor/**/*"
# ref. https://github.com/rubocop/rubocop/blob/v1.66.1/config/default.yml
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- '.git/**/*'
Gemspec/RequireMFA:
Exclude:
- ruby/testdata/example/example.gemspec
Layout/DotPosition:
EnforcedStyle: trailing
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
Layout/SpaceAroundOperators:
Exclude:
# Suppress line breaks in spec files (e.g `it { should xxxx }`, `its(:method) { should xxxx }` )
- "**/*_spec.rb"
Lint/BinaryOperatorWithIdenticalOperands:
Exclude:
- "**/*_spec.rb" # for rspec-parameterized
Metrics/AbcSize:
Max: 20
Metrics/BlockLength:
Exclude:
- "*.gemspec"
- "**/*_spec.rb"
Metrics/ClassLength:
Exclude:
- "**/*_test.rb"
Metrics/CyclomaticComplexity:
Max: 13
Metrics/MethodLength:
Max: 28
Metrics/PerceivedComplexity:
Max: 11
Style/Documentation:
Exclude:
- "**/*_test.rb"
Style/FetchEnvVar:
Enabled: false
Style/NumericPredicate:
EnforcedStyle: comparison
Style/SingleLineMethods:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma