-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.rubocop.yml
51 lines (43 loc) · 938 Bytes
/
.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
require: rubocop-rails
# Exclude auto-generated files
AllCops:
Exclude:
- 'config.ru'
- 'Gemfile'
- 'Rakefile'
- 'bin/**/*'
- 'config/**/*'
- 'db/schema.rb'
- 'db/migrate/*'
- 'db/seeds.rb'
- '**/*.jbuilder'
- 'node_modules/**/*'
# Increase max allowed line length
Metrics/LineLength:
Max: 120
Exclude:
- 'test/**/*'
Metrics/ClassLength:
Exclude:
- 'test/**/*'
# 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/**/*'
Style/ClassAndModuleChildren:
Exclude:
- 'test/**/*'
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Style/EmptyMethod:
EnforcedStyle: expanded
Rails/UnknownEnv:
Environments:
- production
- development
- test
- vagrant