Skip to content

Commit 6fe7923

Browse files
committed
Tweak rubocop and reek config
1 parent 10d406b commit 6fe7923

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.reek.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ directories:
4242
"test":
4343
InstanceVariableAssumption:
4444
enabled: false
45+
DuplicateMethodCall:
46+
enabled: false
47+
UncommunicativeVariableName:
48+
enabled: false

.rubocop.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Rails:
88
Rails/RequestReferer:
99
EnforcedStyle: referrer
1010

11+
Rails/ActionOrder:
12+
Enabled: false
13+
14+
Rails/SkipsModelValidations:
15+
Exclude:
16+
- 'test/**/*_test.rb'
17+
1118
Lint:
1219
Enabled: true
1320

@@ -20,6 +27,7 @@ Metrics:
2027
Metrics/BlockLength:
2128
Exclude:
2229
- 'test/**/*_test.rb'
30+
- 'spec/**/*_spec.rb'
2331

2432
Lint/AssignmentInCondition:
2533
AllowSafeAssignment: true
@@ -75,12 +83,16 @@ Layout/LineLength:
7583

7684
Metrics/AbcSize:
7785
Max: 20
86+
Exclude:
87+
- 'test/**/*_test.rb'
7888

7989
Metrics/MethodLength:
8090
Max: 20
8191

8292
Metrics/ClassLength:
8393
Max: 200
94+
Exclude:
95+
- 'test/**/*_test.rb'
8496

8597
AllCops:
8698
NewCops: enable

0 commit comments

Comments
 (0)