forked from betagouv/eva-serveur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
67 lines (59 loc) · 1.41 KB
/
.rubocop.yml
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
require:
- rubocop-packaging
- rubocop-rails
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'config/**/*'
- 'node_modules/**/*'
- 'script/**/*'
- 'support/**/*'
- 'tmp/**/*'
- 'test/**/*'
- 'vendor/**/*'
- 'spec/spec_helper.rb'
Style/Documentation:
Enabled: false
Style/AsciiComments:
AllowedChars: ['à', 'é', 'è', 'ë', 'ê', 'î', 'ï', 'ô', 'ù', 'ç', 'À', 'É', 'È', 'Ë', 'Ê', 'Î', 'Ï', 'Ô', 'Ù', 'Ç']
Layout/LineLength:
Max: 100
Metrics/BlockLength:
Exclude:
- 'app/views/**/*'
- 'spec/factories/*'
- 'Guardfile'
AllowedMethods:
- describe
- it
- resource
- register
- register_page
- route_param
- context
- show
- controller
- namespace
Metrics/AbcSize:
Exclude:
- 'spec/models/restitution/inventaire/rapidite_spec.rb'
- 'spec/models/restitution/controle/perseverance_spec.rb'
- 'spec/models/restitution/inventaire/perseverance_spec.rb'
- 'spec/models/restitution/tri/perseverance_spec.rb'
- 'spec/models/restitution/tri/comprehension_consigne_spec.rb'
# Désactiver temporairement
Rails/OutputSafety:
Enabled: false
Rails/InverseOf:
Enabled: false
Rails/Delegate:
Exclude:
- 'app/decorators/evenement_livraison.rb'
Rails/RedundantPresenceValidationOnBelongsTo:
Enabled: false
Lint/MissingSuper:
Exclude:
- 'app/components/**/*'