-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.rubocop.yml
More file actions
62 lines (62 loc) · 1.34 KB
/
.rubocop.yml
File metadata and controls
62 lines (62 loc) · 1.34 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
plugins:
- rubocop-performance
inherit_gem:
rubocop-shopify: rubocop.yml
inherit_from: .rubocop_todo.yml
AllCops:
SuggestExtensions: true
TargetRubyVersion: 3.1
NewCops: enable
Exclude:
- tmp/**/*
- "lib/*_pb.rb"
Naming/MethodName:
Enabled: true
AllowedPatterns:
- do_POST
- do_GET
Naming/FileName:
Exclude:
- "**/*.gemspec"
- "**/*_spec.rb"
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 170
Layout/SpaceAfterComma:
Enabled: true
Layout/EmptyLineAfterGuardClause:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: true
Max: 62
Metrics/ParameterLists:
Max: 6
Metrics/BlockNesting:
Max: 5
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: no_comma
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
Style/BarePercentLiterals:
EnforcedStyle: percent_q
Style/NumericLiteralPrefix:
EnforcedOctalStyle: zero_with_o
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: no_comma
Style/DateTime:
Enabled: true
Style/ReturnNil:
Enabled: true
EnforcedStyle: return
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
Style/Encoding:
Enabled: true
Style/OneClassPerFile:
Enabled: false
Lint/RedundantCopDisableDirective:
Enabled: true