-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
134 lines (104 loc) · 2.41 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
require: rubocop-rails
AllCops:
Exclude:
- 'db/schema.rb'
- 'db/migrate/*.rb'
- 'bin/*'
- 'apps/**/*.gemspec'
- 'Rakefile'
- 'assets/**/*'
- 'lib/generators/namespace/templates/**/*'
- 'vendor/bundle/**/*'
ModuleLength:
Enabled: false
LineLength:
Enabled: false
StringLiterals:
EnforcedStyle: single_quotes
Enabled: false
Layout/DotPosition:
EnforcedStyle: leading
Enabled: true
Documentation:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
Metrics/AbcSize:
Max: 30
Exclude:
- 'lib/generators/namespace/namespace_generator.rb'
Enabled: true
Metrics/BlockLength:
CountComments: false
Max: 25
Exclude:
- 'apps/**/config/routes.rb'
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
- 'db/**/*.rb'
Enabled: true
Metrics/ClassLength:
CountComments: false
Max: 300
Exclude:
- 'lib/generators/namespace/namespace_generator.rb'
Enabled: true
Metrics/PerceivedComplexity:
Max: 9
Enabled: true
Metrics/CyclomaticComplexity:
Max: 12
Exclude:
- 'lib/generators/namespace/namespace_generator.rb'
Enabled: true
Metrics/ParameterLists:
Max: 7
Metrics/MethodLength:
CountComments: false
Max: 30
Exclude:
- 'lib/generators/namespace/namespace_generator.rb'
Enabled: true
Naming/UncommunicativeMethodParamName:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/AccessModifierDeclarations:
Enabled: false
Style/Lambda:
Enabled: false
Style/WordArray:
Enabled: false
Style/Semicolon:
Enabled: false
# By default, the rails cops are not run. Override in project or home
# directory .rubocop.yml files, or by giving the -R/--rails option.
Rails:
Enabled: true
Rails/SkipsModelValidations:
Enabled: false
Rails/ReversibleMigration:
Enabled: false
Rails/FindBy:
Enabled: false
Rails/InverseOf:
Enabled: false
Rails/Output:
Enabled: true
Exclude:
- 'lib/seeder.rb'
Style/IfUnlessModifier:
Exclude:
- 'config/initializers/monkeypatches/active_record_database_statements.rb'
- 'config/initializers/monkeypatches/action_view_digestor_initializer.rb'
- 'config/puma.rb'
- 'lib/custom_normalizers/date_str_normalizer.rb'
- 'lib/generators/namespace/namespace_generator.rb'
- 'vendor/controller_concerns/state_machine_abilities.rb'