-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubocop.yml
92 lines (72 loc) · 1.6 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
83
84
85
86
87
88
89
90
91
92
require: rubocop-rails
# 80 characters is too restrictive
Layout/LineLength:
Max: 120
# Load Rails cops
Rails:
Enabled: true
# Missing top-level %s documentation comment is ok for simple classes
Style/Documentation:
Enabled: false
# Don't warn about frozen string literal comment
Style/FrozenStringLiteralComment:
Enabled: false
# No preference for nested or compact class / module definition
Style/ClassAndModuleChildren:
Enabled: false
# Don't care about quotes
Style/StringLiterals:
Enabled: false
# Allow multi-line stabby lambdas
Style/Lambda:
Enabled: false
# Allow documented usage of gettext
Style/FormatStringToken:
Enabled: false
Style/FormatString:
Enabled: false
# Warnings if not explicitly enabled (check in later versions)
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
# Don't test auto generated files
AllCops:
Exclude:
- 'db/schema.rb'
- 'db/seed.rb'
- 'node_modules/**/*'
- 'db/migrate/*'
Style/MixinUsage:
Exclude:
- bin/update
- bin/setup
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- 'features/support/**/*.rb'
- 'db/migrate/*.rb'
Metrics/MethodLength:
Exclude:
- 'spec/**/*.rb'
- 'features/support/**/*.rb'
- 'db/migrate/*.rb'
Metrics/CyclomaticComplexity:
Exclude:
- 'spec/**/*.rb'
- 'features/support/**/*.rb'
Metrics/AbcSize:
Exclude:
- 'spec/**/*.rb'
- 'features/support/**/*.rb'
Rails/Output:
Exclude:
- db/migrate/*
Rails/UnknownEnv:
Environments:
- development
- test
- staging
- production