-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
74 lines (59 loc) · 1.33 KB
/
Copy path.rubocop.yml
File metadata and controls
74 lines (59 loc) · 1.33 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
AllCops:
TargetRubyVersion: 3.4
NewCops: enable
Exclude:
- 'db/migrations/**/*'
- 'vendor/**/*'
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always
Metrics/MethodLength:
Max: 50
Exclude:
- 'app/handlers/**/*'
Metrics/ClassLength:
Max: 150
Exclude:
- 'app/handlers/**/*'
Metrics/CyclomaticComplexity:
Max: 7
Exclude:
- 'app/handlers/**/*'
Metrics/AbcSize:
Max: 20
Exclude:
- 'app/handlers/**/*'
Metrics/PerceivedComplexity:
Max: 8
Exclude:
- 'app/handlers/**/*'
Metrics/BlockLength:
Exclude:
- 'app/handlers/**/*'
- 'app/propay_app.rb'
- 'spec/**/*'
# Keyword args não contam como parameter list — padrão de serviços Ruby
Metrics/ParameterLists:
CountKeywordArgs: false
Layout/LineLength:
Max: 120
Exclude:
- 'spec/**/*'
Style/Lambda:
EnforcedStyle: literal
Style/MultilineTernaryOperator:
Enabled: true
Style/SafeNavigationChainLength:
Max: 2
# cancel_charge retorna bool por convenção da interface do provider — não é predicate de estado
Naming/PredicateMethod:
AllowedMethods:
- cancel_charge
# Jobs Sidekiq: rescue + DB.transaction inflam ABCSize artificialmente
Metrics/AbcSize:
Exclude:
- 'app/handlers/**/*'
- 'app/jobs/**/*'
- 'app/services/subscription_service.rb'