forked from shakacode/react_on_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
62 lines (50 loc) · 1.17 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
# This is the configuration used to check the rubocop source code.
# Check out: https://github.com/bbatsov/rubocop
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'node_modules/**/*'
- 'db/**/*'
- 'db/schema.rb'
- 'db/seeds.rb'
- 'client/node_modules/**/*'
- 'bin/**/*'
- !ruby/regexp /old_and_unused\.rb$/
Metrics/LineLength:
Max: 120
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/Documentation:
Enabled: false
Lint/AssignmentInCondition:
Exclude:
- 'spec/dummy/bin/spring'
# Offense count: 2
Lint/HandleExceptions:
Exclude:
- 'spec/dummy/bin/rails'
- 'spec/dummy/bin/rake'
# Offense count: 1
Metrics/AbcSize:
Max: 18
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 114
# Offense count: 9
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 38
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 119
# Offense count: 3
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'spec/dummy/config/environments/development.rb'