forked from DFE-Digital/teaching-vacancies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
82 lines (63 loc) · 1.45 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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.4
Exclude:
- 'db/migrate/**/*'
- 'db/schema.rb'
- 'db/seeds.rb'
- 'bin/**/*'
- 'config/initializers/simple_form.rb'
- 'config/initializers/assets.rb'
- 'spec/rails_helper.rb'
- 'lib/vacancy_scraper/north_east_schools/*.rb'
Rails:
Enabled: true
Rails/HasManyOrHasOneDependent:
Enabled: false
Bundler/OrderedGems:
Enabled: false
Style/Alias:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/NumericLiterals:
Enabled: false
Layout/TrailingBlankLines:
Enabled: false
Style/TrailingCommaInArguments:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/WordArray:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/MethodLength:
Max: 50
Exclude:
Metrics/AbcSize:
Max: 25
Exclude:
- 'spec/**/*'
- 'app/jobs/performance_platform_feedback_queue_job.rb'
Metrics/ModuleLength:
Exclude:
- 'spec/support/vacancy_helpers.rb'
Metrics/LineLength:
Max: 120
Exclude:
- 'config/initializers/performance_platform.rb'
Metrics/BlockLength:
Max: 40
Exclude:
- 'spec/**/*'
- 'config/routes.rb'
- 'lib/tasks/vacancies.rake'