-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.rubocop.yml
More file actions
61 lines (45 loc) · 1.1 KB
/
.rubocop.yml
File metadata and controls
61 lines (45 loc) · 1.1 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
AllCops:
TargetRubyVersion: 3.3
NewCops: enable
SuggestExtensions: false
Style/Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Layout/LineLength:
Max: 120
Metrics/ClassLength:
Max: 200
Metrics/MethodLength:
Max: 35
Metrics/AbcSize:
Max: 40
Metrics/CyclomaticComplexity:
Max: 15
Metrics/PerceivedComplexity:
Max: 15
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- '*.gemspec'
Style/FrozenStringLiteralComment:
Enabled: true
# Specs often have multiline block chains
Style/MultilineBlockChain:
Exclude:
- 'spec/**/*'
# Disable predicate method naming rule
Naming/PredicateMethod:
Enabled: false
# Allow development dependencies in gemspec
Gemspec/DevelopmentDependencies:
Enabled: false
# Enforce first argument on new line for multiline method calls
Layout/FirstMethodArgumentLineBreak:
Enabled: true
# Use fixed indentation for arguments
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
# Ensure closing parenthesis on new line for multiline calls
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: new_line