-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
120 lines (93 loc) · 2.25 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
inherit_from: .rubocop_todo.yml
require: rubocop-rspec
AllCops:
TargetRubyVersion: 2.5
Exclude:
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'bin/**/*'
- 'spec/spec_helper.rb'
- 'spec/rails_helper.rb'
- 'lib/support/**/*'
- 'lib/tasks/**/*'
Bundler/OrderedGems:
Enabled: false
Rails:
Enabled: true
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/InverseOf:
Enabled: false
Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/AsciiComments:
Enabled: false
Metrics/LineLength:
Max: 115
Exclude:
- 'app/models/vote.rb'
- 'app/concerns/draw_behaviour.rb'
- 'app/models/alliance_proportional.rb'
- 'app/models/alliance_result.rb'
- 'app/models/coalition_proportional.rb'
- 'app/models/coalition_result.rb'
- 'app/models/candidate_result.rb'
- 'app/models/electoral_coalition.rb'
- 'app/models/result.rb'
- 'app/models/candidate.rb'
- 'spec/models/imported_csv_candidate_spec.rb'
IgnoredPatterns:
- '^\s*Rails\.logger\.'
Metrics/MethodLength:
Max: 25
Metrics/AbcSize:
Max: 40
Metrics/CyclomaticComplexity:
Max: 12
Metrics/PerceivedComplexity:
Max: 12
Metrics/ModuleLength:
Exclude:
- 'spec/**/*.rb'
Metrics/BlockLength:
CountComments: false
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/LetSetup:
Enabled: false
RSpec/InstanceVariable:
Enabled: false
Style/RedundantSelf:
Enabled: false
Layout/FirstParameterIndentation:
Exclude:
- 'app/models/candidate.rb'
- 'app/models/result.rb'
- 'app/concerns/draw_behaviour.rb'
Layout/MultilineMethodCallBraceLayout:
Exclude:
- 'app/models/candidate.rb'
- 'app/models/result.rb'
- 'app/concerns/draw_behaviour.rb'
RSpec/BeforeAfterAll:
Exclude:
- 'spec/spec_helper.rb'
- 'spec/rails_helper.rb'
- 'spec/support/**/*.rb'
- 'spec/lib/result_decorator_spec.rb'
- 'spec/models/imported_csv_alliance_spec.rb'
- 'spec/models/imported_csv_candidate_spec.rb'
- 'spec/models/imported_csv_coalition_spec.rb'
- 'spec/models/imported_csv_vote_spec.rb'