-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
71 lines (55 loc) · 1.32 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
AllCops:
TargetRubyVersion: 2.4.1
DisplayCopNames: true
Exclude:
- 'bin/**/*'
- 'vendor/**/*'
- db/schema.rb
# We prefer everything to be self-explanatory
Style/Documentation:
Enabled: false
# We do not care
Style/FrozenStringLiteralComment:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Metrics/LineLength:
Max: 120
Exclude:
- 'config/initializers/devise.rb'
Metrics/BlockLength:
Exclude:
- 'config/initializers/simple_form_bootstrap.rb'
- 'config/environments/production.rb'
- 'config/environments/development.rb'
- 'spec/**/*'
- 'app/admin/**/*'
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/IndentationWidth:
Width: 2
# So when reading code we know that given line has continuation
Layout/DotPosition:
EnforcedStyle: 'trailing'
Layout/AlignParameters:
EnforcedStyle: 'with_fixed_indentation'
Layout/IndentArray:
EnforcedStyle: 'consistent'
# Lets be reasonable about it
Metrics/AbcSize:
Max: 17
Exclude:
# Large blocks and modules are totally fine in rspec
Metrics/ModuleLength:
Exclude:
- '**/*_spec.rb'
ClassLength:
Max: 250
Metrics/MethodLength:
Exclude:
- 'db/migrate/*.rb'
Naming/VariableNumber:
EnforcedStyle: 'snake_case'
Naming/PredicateName:
Exclude:
- 'app/controllers/api/v1/auth_controller.rb'