forked from umd-lib/student-applications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
80 lines (65 loc) · 1.57 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
# Enables Rails cops
Rails:
Enabled: true
# Exclude auto-generated files
AllCops:
Exclude:
- 'config.ru'
- 'Rakefile'
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'lib/**/*'
TargetRubyVersion: 2.5
TargetRailsVersion: 5.2
# Increase max allowed line length
Metrics/LineLength:
Max: 120
IgnoreCopDirectives: true
Metrics/ClassLength:
Exclude:
- 'test/**/*'
Metrics/BlockLength:
Exclude:
- 'test/system/*_test.rb'
# The following configuration exclude checks that seem
# silly, or conflict with the way Rails naturally does
# things.
Style/Documentation:
Exclude:
- 'app/controllers/*_controller.rb'
- 'app/helpers/*_helper.rb'
- 'test/test_helper.rb'
- 'test/controllers/*_controller_test.rb'
- 'test/helpers/*_helper_test.rb'
- 'test/system/*_test.rb'
Style/ClassAndModuleChildren:
Exclude:
- 'test/**/*'
Layout/IndentationConsistency:
EnforcedStyle: rails
# Disabling the following as they interfere with the Rails layout of the
# Gemfile, making changes when doing upgrades less visible
Bundler/OrderedGems:
Enabled: false
Layout/EmptyLines:
Exclude:
- Gemfile
Style/StringLiterals:
Exclude:
- Gemfile
Style/SymbolArray:
Exclude:
- Gemfile
Style/FrozenStringLiteralComment:
Exclude:
- Gemfile
# May want to reconsider these exclusions in the future
Rails/HasAndBelongsToMany:
Exclude:
- 'app/models/enumeration.rb'
- 'app/models/skill.rb'
Rails/SkipsModelValidations:
Exclude:
- 'app/controllers/configuration_controller.rb'
- 'app/controllers/prospects_controller.rb'