maximus 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,9 @@
1
1
  require 'maximus'
2
+ require 'coveralls'
3
+ Coveralls.wear!
2
4
 
3
5
  RSpec.configure do |config|
6
+ config.mock_with :rspec do |c|
7
+ c.syntax = [:should, :expect]
8
+ end
4
9
  end
@@ -0,0 +1 @@
1
+ Rubolinter: true
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maximus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Shedor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-03 00:00:00.000000000 Z
11
+ date: 2015-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.8
19
+ version: 1.2.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.8
26
+ version: 1.2.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: scss-lint
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.31.0
33
+ version: 0.33.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.31.0
40
+ version: 0.33.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rainbow
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.23'
61
+ version: '0.28'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.23'
68
+ version: '0.28'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rails_best_practices
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,56 +86,56 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.6'
89
+ version: 3.0.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.6'
96
+ version: 3.0.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: wraith
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.1.0
103
+ version: '2.3'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.1.0
110
+ version: '2.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: activesupport
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 4.2.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 4.2.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: thor
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 0.19.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 0.19.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: bundler
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -151,47 +151,47 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.6'
153
153
  - !ruby/object:Gem::Dependency
154
- name: nokogiri
154
+ name: yard
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.6.0
159
+ version: '0.8'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.6.0
166
+ version: '0.8'
167
167
  - !ruby/object:Gem::Dependency
168
- name: yard
168
+ name: rspec
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0.8'
173
+ version: '3.0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0.8'
180
+ version: '3.0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: rspec
182
+ name: coveralls
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '3.0'
187
+ version: 0.7.8
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '3.0'
194
+ version: 0.7.8
195
195
  description: The all-in-one linting solution
196
196
  email:
197
197
  - tshedor@gmail.com
@@ -213,7 +213,6 @@ files:
213
213
  - lib/maximus/config.rb
214
214
  - lib/maximus/config/maximus-example.yml
215
215
  - lib/maximus/config/maximus.yml
216
- - lib/maximus/config/rubocop.yml
217
216
  - lib/maximus/config/wraith/casper.js
218
217
  - lib/maximus/config/wraith/nojs.js
219
218
  - lib/maximus/config/wraith/snap.js
@@ -236,7 +235,11 @@ files:
236
235
  - maximus.gemspec
237
236
  - roadmap.md
238
237
  - spec/maximus/config_spec.rb
238
+ - spec/maximus/git_control_spec.rb
239
+ - spec/maximus/helper_spec.rb
240
+ - spec/maximus/lint_spec.rb
239
241
  - spec/spec_helper.rb
242
+ - spec/support/rubocop.yml
240
243
  homepage: https://github.com/wearefine/maximus
241
244
  licenses:
242
245
  - MIT
@@ -257,11 +260,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
260
  version: '0'
258
261
  requirements: []
259
262
  rubyforge_project:
260
- rubygems_version: 2.2.2
263
+ rubygems_version: 2.4.2
261
264
  signing_key:
262
265
  specification_version: 4
263
266
  summary: Make your code spic and <span>
264
267
  test_files:
265
268
  - spec/maximus/config_spec.rb
269
+ - spec/maximus/git_control_spec.rb
270
+ - spec/maximus/helper_spec.rb
271
+ - spec/maximus/lint_spec.rb
266
272
  - spec/spec_helper.rb
273
+ - spec/support/rubocop.yml
267
274
  has_rdoc:
@@ -1,1007 +0,0 @@
1
- # Common configuration.
2
- AllCops:
3
- # Include gemspec and Rakefile
4
- Include:
5
- - '**/*.gemspec'
6
- - '**/*.podspec'
7
- - '**/*.jbuilder'
8
- - '**/*.rake'
9
- - '**/*.opal'
10
- - '**/Gemfile'
11
- - '**/Rakefile'
12
- - '**/Capfile'
13
- - '**/Guardfile'
14
- - '**/Podfile'
15
- - '**/Thorfile'
16
- - '**/Vagrantfile'
17
- - '**/Berksfile'
18
- - '**/Cheffile'
19
- - '**/Vagabondfile'
20
- Exclude:
21
- - 'vendor/**/*'
22
- # By default, the rails cops are not run. Override in project or home
23
- # directory .rubocop.yml files, or by giving the -R/--rails option.
24
- RunRailsCops: true
25
-
26
-
27
- # These are all the cops that are enabled in the default configuration.
28
-
29
- Style/AccessModifierIndentation:
30
- Description: Check indentation of private/protected visibility modifiers.
31
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
32
- Enabled: true
33
-
34
- Style/AccessorMethodName:
35
- Description: Check the naming of accessor methods for get_/set_.
36
- Enabled: true
37
-
38
- Style/Alias:
39
- Description: 'Use alias_method instead of alias.'
40
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
41
- Enabled: true
42
-
43
- Style/AlignArray:
44
- Description: >-
45
- Align the elements of an array literal if they span more than
46
- one line.
47
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
48
- Enabled: true
49
-
50
- Style/AlignHash:
51
- Description: >-
52
- Align the elements of a hash literal if they span more than
53
- one line.
54
- Enabled: true
55
-
56
- Style/AlignParameters:
57
- Description: >-
58
- Align the parameters of a method call if they span more
59
- than one line.
60
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
61
- Enabled: true
62
-
63
- Style/AndOr:
64
- Description: 'Use &&/|| instead of and/or.'
65
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
66
- Enabled: true
67
-
68
- Style/ArrayJoin:
69
- Description: 'Use Array#join instead of Array#*.'
70
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
71
- Enabled: true
72
-
73
- Style/AsciiComments:
74
- Description: 'Use only ascii symbols in comments.'
75
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
76
- Enabled: true
77
-
78
- Style/AsciiIdentifiers:
79
- Description: 'Use only ascii symbols in identifiers.'
80
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
81
- Enabled: true
82
-
83
- Style/Attr:
84
- Description: 'Checks for uses of Module#attr.'
85
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
86
- Enabled: true
87
-
88
- Style/BeginBlock:
89
- Description: 'Avoid the use of BEGIN blocks.'
90
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
91
- Enabled: true
92
-
93
- Style/BarePercentLiterals:
94
- Description: 'Checks if usage of %() or %Q() matches configuration.'
95
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
96
- Enabled: true
97
-
98
- Style/BlockComments:
99
- Description: 'Do not use block comments.'
100
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
101
- Enabled: true
102
-
103
- Style/BlockEndNewline:
104
- Description: 'Put end statement of multiline block on its own line.'
105
- Enabled: true
106
-
107
- Style/Blocks:
108
- Description: >-
109
- Avoid using {...} for multi-line blocks (multiline chaining is
110
- always ugly).
111
- Prefer {...} over do...end for single-line blocks.
112
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
113
- Enabled: true
114
-
115
- Style/BracesAroundHashParameters:
116
- Description: 'Enforce braces style around hash parameters.'
117
- Enabled: true
118
-
119
- Style/CaseEquality:
120
- Description: 'Avoid explicit use of the case equality operator(===).'
121
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
122
- Enabled: true
123
-
124
- Style/CaseIndentation:
125
- Description: 'Indentation of when in a case/when/[else/]end.'
126
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
127
- Enabled: true
128
-
129
- Style/CharacterLiteral:
130
- Description: 'Checks for uses of character literals.'
131
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
132
- Enabled: true
133
-
134
- Style/ClassAndModuleCamelCase:
135
- Description: 'Use CamelCase for classes and modules.'
136
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
137
- Enabled: true
138
-
139
- Style/ClassAndModuleChildren:
140
- Description: 'Checks style of children classes and modules.'
141
- Enabled: true
142
-
143
- Style/ClassCheck:
144
- Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
145
- Enabled: true
146
-
147
- Style/ClassMethods:
148
- Description: 'Use self when defining module/class methods.'
149
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-singletons'
150
- Enabled: true
151
-
152
- Style/ClassVars:
153
- Description: 'Avoid the use of class variables.'
154
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
155
- Enabled: true
156
-
157
- Style/ColonMethodCall:
158
- Description: 'Do not use :: for method call.'
159
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
160
- Enabled: true
161
-
162
- Style/CommentAnnotation:
163
- Description: >-
164
- Checks formatting of special comments
165
- (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
166
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
167
- Enabled: true
168
-
169
- Style/CommentIndentation:
170
- Description: 'Indentation of comments.'
171
- Enabled: true
172
-
173
- Style/ConstantName:
174
- Description: 'Constants should use SCREAMING_SNAKE_CASE.'
175
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
176
- Enabled: true
177
-
178
- Style/DefWithParentheses:
179
- Description: 'Use def with parentheses when there are arguments.'
180
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
181
- Enabled: true
182
-
183
- Style/DeprecatedHashMethods:
184
- Description: 'Checks for use of deprecated Hash methods.'
185
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
186
- Enabled: true
187
-
188
- Style/Documentation:
189
- Description: 'Document classes and non-namespace modules.'
190
- Enabled: false
191
-
192
- Style/DotPosition:
193
- Description: 'Checks the position of the dot in multi-line method calls.'
194
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
195
- Enabled: true
196
-
197
- Style/DoubleNegation:
198
- Description: 'Checks for uses of double negation (!!).'
199
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
200
- Enabled: true
201
-
202
- Style/EachWithObject:
203
- Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
204
- Enabled: true
205
-
206
- Style/ElseAlignment:
207
- Description: 'Align elses and elsifs correctly.'
208
- Enabled: true
209
-
210
- Style/EmptyLineBetweenDefs:
211
- Description: 'Use empty lines between defs.'
212
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
213
- Enabled: true
214
-
215
- Style/EmptyLines:
216
- Description: "Don't use several empty lines in a row."
217
- Enabled: true
218
-
219
- Style/EmptyLinesAroundAccessModifier:
220
- Description: "Keep blank lines around access modifiers."
221
- Enabled: true
222
-
223
- Style/EmptyLinesAroundClassBody:
224
- Description: "Keeps track of empty lines around class bodies."
225
- Enabled: true
226
-
227
- Style/EmptyLinesAroundModuleBody:
228
- Description: "Keeps track of empty lines around module bodies."
229
- Enabled: true
230
-
231
- Style/EmptyLinesAroundMethodBody:
232
- Description: "Keeps track of empty lines around method bodies."
233
- Enabled: true
234
-
235
- Style/EmptyLiteral:
236
- Description: 'Prefer literals to Array.new/Hash.new/String.new.'
237
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
238
- Enabled: true
239
-
240
- Style/EndBlock:
241
- Description: 'Avoid the use of END blocks.'
242
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
243
- Enabled: true
244
-
245
- Style/EndOfLine:
246
- Description: 'Use Unix-style line endings.'
247
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
248
- Enabled: true
249
-
250
- Style/EvenOdd:
251
- Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
252
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
253
- Enabled: true
254
-
255
- Style/FileName:
256
- Description: 'Use snake_case for source file names.'
257
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
258
- Enabled: true
259
-
260
- Style/FlipFlop:
261
- Description: 'Checks for flip flops'
262
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
263
- Enabled: true
264
-
265
- Style/For:
266
- Description: 'Checks use of for or each in multiline loops.'
267
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
268
- Enabled: true
269
-
270
- Style/FormatString:
271
- Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
272
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
273
- Enabled: true
274
-
275
- Style/GlobalVars:
276
- Description: 'Do not introduce global variables.'
277
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
278
- Enabled: true
279
-
280
- Style/GuardClause:
281
- Description: 'Check for conditionals that can be replaced with guard clauses'
282
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
283
- Enabled: true
284
-
285
- Style/HashSyntax:
286
- Description: >-
287
- Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
288
- { :a => 1, :b => 2 }.
289
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
290
- Enabled: true
291
-
292
- Style/IfUnlessModifier:
293
- Description: >-
294
- Favor modifier if/unless usage when you have a
295
- single-line body.
296
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
297
- Enabled: true
298
-
299
- Style/IfWithSemicolon:
300
- Description: 'Do not use if x; .... Use the ternary operator instead.'
301
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
302
- Enabled: true
303
-
304
- Style/IndentationConsistency:
305
- Description: 'Keep indentation straight.'
306
- Enabled: true
307
-
308
- Style/IndentationWidth:
309
- Description: 'Use 2 spaces for indentation.'
310
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
311
- Enabled: true
312
-
313
- Style/IndentArray:
314
- Description: >-
315
- Checks the indentation of the first element in an array
316
- literal.
317
- Enabled: true
318
-
319
- Style/IndentHash:
320
- Description: 'Checks the indentation of the first key in a hash literal.'
321
- Enabled: true
322
-
323
- Style/InfiniteLoop:
324
- Description: 'Use Kernel#loop for infinite loops.'
325
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
326
- Enabled: true
327
-
328
- Style/Lambda:
329
- Description: 'Use the new lambda literal syntax for single-line blocks.'
330
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
331
- Enabled: true
332
-
333
- Style/LambdaCall:
334
- Description: 'Use lambda.call(...) instead of lambda.(...).'
335
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
336
- Enabled: true
337
-
338
- Style/LeadingCommentSpace:
339
- Description: 'Comments should start with a space.'
340
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
341
- Enabled: true
342
-
343
- Style/LineEndConcatenation:
344
- Description: >-
345
- Use \ instead of + or << to concatenate two string literals at
346
- line end.
347
- Enabled: true
348
-
349
- Style/MethodCallParentheses:
350
- Description: 'Do not use parentheses for method calls with no arguments.'
351
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
352
- Enabled: true
353
-
354
- Style/MethodDefParentheses:
355
- Description: >-
356
- Checks if the method definitions have or don't have
357
- parentheses.
358
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
359
- Enabled: true
360
-
361
- Style/MethodName:
362
- Description: 'Use the configured style when naming methods.'
363
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
364
- Enabled: true
365
-
366
- Style/ModuleFunction:
367
- Description: 'Checks for usage of `extend self` in modules.'
368
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
369
- Enabled: true
370
-
371
- Style/MultilineBlockChain:
372
- Description: 'Avoid multi-line chains of blocks.'
373
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
374
- Enabled: true
375
-
376
- Style/MultilineBlockLayout:
377
- Description: 'Ensures newlines after multiline block do statements.'
378
- Enabled: true
379
-
380
- Style/MultilineIfThen:
381
- Description: 'Do not use then for multi-line if/unless.'
382
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
383
- Enabled: true
384
-
385
- Style/MultilineOperationIndentation:
386
- Description: >-
387
- Checks indentation of binary operations that span more than
388
- one line.
389
- Enabled: true
390
-
391
- Style/MultilineTernaryOperator:
392
- Description: >-
393
- Avoid multi-line ?: (the ternary operator);
394
- use if/unless instead.
395
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
396
- Enabled: true
397
-
398
- Style/NegatedIf:
399
- Description: >-
400
- Favor unless over if for negative conditions
401
- (or control flow or).
402
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
403
- Enabled: true
404
-
405
- Style/NegatedWhile:
406
- Description: 'Favor until over while for negative conditions.'
407
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
408
- Enabled: true
409
-
410
- Style/NestedTernaryOperator:
411
- Description: 'Use one expression per branch in a ternary operator.'
412
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
413
- Enabled: true
414
-
415
- Style/Next:
416
- Description: 'Use `next` to skip iteration instead of a condition at the end.'
417
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
418
- Enabled: true
419
-
420
- Style/NilComparison:
421
- Description: 'Prefer x.nil? to x == nil.'
422
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
423
- Enabled: true
424
-
425
- Style/NonNilCheck:
426
- Description: 'Checks for redundant nil checks.'
427
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
428
- Enabled: true
429
-
430
- Style/Not:
431
- Description: 'Use ! instead of not.'
432
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
433
- Enabled: true
434
-
435
- Style/NumericLiterals:
436
- Description: >-
437
- Add underscores to large numeric literals to improve their
438
- readability.
439
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
440
- Enabled: true
441
-
442
- Style/OneLineConditional:
443
- Description: >-
444
- Favor the ternary operator(?:) over
445
- if/then/else/end constructs.
446
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
447
- Enabled: true
448
-
449
- Style/OpMethod:
450
- Description: 'When defining binary operators, name the argument other.'
451
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
452
- Enabled: true
453
-
454
- Style/ParenthesesAroundCondition:
455
- Description: >-
456
- Don't use parentheses around the condition of an
457
- if/unless/while.
458
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
459
- Enabled: true
460
-
461
- Style/PercentLiteralDelimiters:
462
- Description: 'Use `%`-literal delimiters consistently'
463
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
464
- Enabled: true
465
-
466
- Style/PercentQLiterals:
467
- Description: 'Checks if uses of %Q/%q match the configured preference.'
468
- Enabled: true
469
-
470
- Style/PerlBackrefs:
471
- Description: 'Avoid Perl-style regex back references.'
472
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
473
- Enabled: true
474
-
475
- Style/PredicateName:
476
- Description: 'Check the names of predicate methods.'
477
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
478
- Enabled: true
479
-
480
- Style/Proc:
481
- Description: 'Use proc instead of Proc.new.'
482
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
483
- Enabled: true
484
-
485
- Style/RaiseArgs:
486
- Description: 'Checks the arguments passed to raise/fail.'
487
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
488
- Enabled: true
489
-
490
- Style/RedundantBegin:
491
- Description: "Don't use begin blocks when they are not needed."
492
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
493
- Enabled: true
494
-
495
- Style/RedundantException:
496
- Description: "Checks for an obsolete RuntimeException argument in raise/fail."
497
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
498
- Enabled: true
499
-
500
- Style/RedundantReturn:
501
- Description: "Don't use return where it's not required."
502
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
503
- Enabled: true
504
-
505
- Style/RedundantSelf:
506
- Description: "Don't use self where it's not needed."
507
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
508
- Enabled: true
509
-
510
- Style/RegexpLiteral:
511
- Description: >-
512
- Use %r for regular expressions matching more than
513
- `MaxSlashes` '/' characters.
514
- Use %r only for regular expressions matching more than
515
- `MaxSlashes` '/' character.
516
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
517
- Enabled: true
518
-
519
- Style/RescueModifier:
520
- Description: 'Avoid using rescue in its modifier form.'
521
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
522
- Enabled: true
523
-
524
- Style/SelfAssignment:
525
- Description: >-
526
- Checks for places where self-assignment shorthand should have
527
- been used.
528
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
529
- Enabled: true
530
-
531
- Style/Semicolon:
532
- Description: "Don't use semicolons to terminate expressions."
533
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
534
- Enabled: true
535
-
536
- Style/SignalException:
537
- Description: 'Checks for proper usage of fail and raise.'
538
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
539
- Enabled: true
540
-
541
- Style/SingleLineBlockParams:
542
- Description: 'Enforces the names of some block params.'
543
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
544
- Enabled: true
545
-
546
- Style/SingleLineMethods:
547
- Description: 'Avoid single-line methods.'
548
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
549
- Enabled: true
550
-
551
- Style/SingleSpaceBeforeFirstArg:
552
- Description: >-
553
- Checks that exactly one space is used between a method name
554
- and the first argument for method calls without parentheses.
555
- Enabled: true
556
-
557
- Style/SpaceAfterColon:
558
- Description: 'Use spaces after colons.'
559
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
560
- Enabled: true
561
-
562
- Style/SpaceAfterComma:
563
- Description: 'Use spaces after commas.'
564
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
565
- Enabled: true
566
-
567
- Style/SpaceAfterControlKeyword:
568
- Description: 'Use spaces after if/elsif/unless/while/until/case/when.'
569
- Enabled: true
570
-
571
- Style/SpaceAfterMethodName:
572
- Description: >-
573
- Do not put a space between a method name and the opening
574
- parenthesis in a method definition.
575
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
576
- Enabled: true
577
-
578
- Style/SpaceAfterNot:
579
- Description: Tracks redundant space after the ! operator.
580
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
581
- Enabled: true
582
-
583
- Style/SpaceAfterSemicolon:
584
- Description: 'Use spaces after semicolons.'
585
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
586
- Enabled: true
587
-
588
- Style/SpaceBeforeBlockBraces:
589
- Description: >-
590
- Checks that the left block brace has or doesn't have space
591
- before it.
592
- Enabled: true
593
-
594
- Style/SpaceBeforeComma:
595
- Description: 'No spaces before commas.'
596
- Enabled: true
597
-
598
- Style/SpaceBeforeComment:
599
- Description: >-
600
- Checks for missing space between code and a comment on the
601
- same line.
602
- Enabled: true
603
-
604
- Style/SpaceBeforeSemicolon:
605
- Description: 'No spaces before semicolons.'
606
- Enabled: true
607
-
608
- Style/SpaceInsideBlockBraces:
609
- Description: >-
610
- Checks that block braces have or don't have surrounding space.
611
- For blocks taking parameters, checks that the left brace has
612
- or doesn't have trailing space.
613
- Enabled: true
614
-
615
- Style/SpaceAroundEqualsInParameterDefault:
616
- Description: >-
617
- Checks that the equals signs in parameter default assignments
618
- have or don't have surrounding space depending on
619
- configuration.
620
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
621
- Enabled: true
622
-
623
- Style/SpaceAroundOperators:
624
- Description: 'Use spaces around operators.'
625
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
626
- Enabled: true
627
-
628
- Style/SpaceBeforeModifierKeyword:
629
- Description: 'Put a space before the modifier keyword.'
630
- Enabled: true
631
-
632
- Style/SpaceInsideBrackets:
633
- Description: 'No spaces after [ or before ].'
634
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
635
- Enabled: true
636
-
637
- Style/SpaceInsideHashLiteralBraces:
638
- Description: "Use spaces inside hash literal braces - or don't."
639
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
640
- Enabled: true
641
-
642
- Style/SpaceInsideParens:
643
- Description: 'No spaces after ( or before ).'
644
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
645
- Enabled: true
646
-
647
- Style/SpaceInsideRangeLiteral:
648
- Description: 'No spaces inside range literals.'
649
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
650
- Enabled: true
651
-
652
- Style/SpecialGlobalVars:
653
- Description: 'Avoid Perl-style global variables.'
654
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
655
- Enabled: true
656
-
657
- Style/StringLiterals:
658
- Description: 'Checks if uses of quotes match the configured preference.'
659
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
660
- Enabled: true
661
-
662
- Style/StringLiteralsInInterpolation:
663
- Description: >-
664
- Checks if uses of quotes inside expressions in interpolated
665
- strings match the configured preference.
666
- Enabled: true
667
-
668
- Style/SymbolProc:
669
- Description: 'Use symbols as procs instead of blocks when possible.'
670
- Enabled: true
671
-
672
- Style/Tab:
673
- Description: 'No hard tabs.'
674
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
675
- Enabled: true
676
-
677
- Style/TrailingBlankLines:
678
- Description: 'Checks trailing blank lines and final newline.'
679
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
680
- Enabled: true
681
-
682
- Style/TrailingComma:
683
- Description: 'Checks for trailing comma in parameter lists and literals.'
684
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
685
- Enabled: true
686
-
687
- Style/TrailingWhitespace:
688
- Description: 'Avoid trailing whitespace.'
689
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
690
- Enabled: true
691
-
692
- Style/TrivialAccessors:
693
- Description: 'Prefer attr_* methods to trivial readers/writers.'
694
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
695
- Enabled: true
696
-
697
- Style/UnlessElse:
698
- Description: >-
699
- Do not use unless with else. Rewrite these with the positive
700
- case first.
701
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
702
- Enabled: true
703
-
704
- Style/UnneededCapitalW:
705
- Description: 'Checks for %W when interpolation is not needed.'
706
- Enabled: true
707
-
708
- Style/UnneededPercentQ:
709
- Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
710
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
711
- Enabled: true
712
-
713
- Style/UnneededPercentX:
714
- Description: 'Checks for %x when `` would do.'
715
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
716
- Enabled: true
717
-
718
- Style/VariableInterpolation:
719
- Description: >-
720
- Don't interpolate global, instance and class variables
721
- directly in strings.
722
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
723
- Enabled: true
724
-
725
- Style/VariableName:
726
- Description: 'Use the configured style when naming variables.'
727
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
728
- Enabled: true
729
-
730
- Style/WhenThen:
731
- Description: 'Use when x then ... for one-line cases.'
732
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
733
- Enabled: true
734
-
735
- Style/WhileUntilDo:
736
- Description: 'Checks for redundant do after while or until.'
737
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
738
- Enabled: true
739
-
740
- Style/WhileUntilModifier:
741
- Description: >-
742
- Favor modifier while/until usage when you have a
743
- single-line body.
744
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
745
- Enabled: true
746
-
747
- Style/WordArray:
748
- Description: 'Use %w or %W for arrays of words.'
749
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
750
- Enabled: true
751
-
752
- #################### Metrics ################################
753
-
754
- Metrics/AbcSize:
755
- Description: >-
756
- A calculated magnitude based on number of assignments,
757
- branches, and conditions.
758
- Enabled: true
759
-
760
- Metrics/BlockNesting:
761
- Description: 'Avoid excessive block nesting'
762
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
763
- Enabled: true
764
-
765
- Metrics/ClassLength:
766
- Description: 'Avoid classes longer than 100 lines of code.'
767
- Enabled: true
768
-
769
- Metrics/CyclomaticComplexity:
770
- Description: >-
771
- A complexity metric that is strongy correlated to the number
772
- of test cases needed to validate a method.
773
- Enabled: true
774
-
775
- Metrics/LineLength:
776
- Description: 'Limit lines to 80 characters.'
777
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
778
- Enabled: true
779
-
780
- Metrics/MethodLength:
781
- Description: 'Avoid methods longer than 10 lines of code.'
782
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
783
- Enabled: true
784
-
785
- Metrics/ParameterLists:
786
- Description: 'Avoid parameter lists longer than three or four parameters.'
787
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
788
- Enabled: true
789
-
790
- Metrics/PerceivedComplexity:
791
- Description: >-
792
- A complexity metric geared towards measuring complexity for a
793
- human reader.
794
- Enabled: true
795
-
796
- #################### Lint ################################
797
- ### Warnings
798
-
799
- Lint/AmbiguousOperator:
800
- Description: >-
801
- Checks for ambiguous operators in the first argument of a
802
- method invocation without parentheses.
803
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
804
- Enabled: true
805
-
806
- Lint/AmbiguousRegexpLiteral:
807
- Description: >-
808
- Checks for ambiguous regexp literals in the first argument of
809
- a method invocation without parenthesis.
810
- Enabled: true
811
-
812
- Lint/AssignmentInCondition:
813
- Description: "Don't use assignment in conditions."
814
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
815
- Enabled: true
816
-
817
- Lint/BlockAlignment:
818
- Description: 'Align block ends correctly.'
819
- Enabled: true
820
-
821
- Lint/ConditionPosition:
822
- Description: >-
823
- Checks for condition placed in a confusing position relative to
824
- the keyword.
825
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
826
- Enabled: true
827
-
828
- Lint/Debugger:
829
- Description: 'Check for debugger calls.'
830
- Enabled: true
831
-
832
- Lint/DefEndAlignment:
833
- Description: 'Align ends corresponding to defs correctly.'
834
- Enabled: true
835
-
836
- Lint/DeprecatedClassMethods:
837
- Description: 'Check for deprecated class method calls.'
838
- Enabled: true
839
-
840
- Lint/ElseLayout:
841
- Description: 'Check for odd code arrangement in an else block.'
842
- Enabled: true
843
-
844
- Lint/EmptyEnsure:
845
- Description: 'Checks for empty ensure block.'
846
- Enabled: true
847
-
848
- Lint/EmptyInterpolation:
849
- Description: 'Checks for empty string interpolation.'
850
- Enabled: true
851
-
852
- Lint/EndAlignment:
853
- Description: 'Align ends correctly.'
854
- Enabled: true
855
-
856
- Lint/EndInMethod:
857
- Description: 'END blocks should not be placed inside method definitions.'
858
- Enabled: true
859
-
860
- Lint/EnsureReturn:
861
- Description: 'Do not use return in an ensure block.'
862
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
863
- Enabled: true
864
-
865
- Lint/Eval:
866
- Description: 'The use of eval represents a serious security risk.'
867
- Enabled: true
868
-
869
- Lint/HandleExceptions:
870
- Description: "Don't suppress exception."
871
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
872
- Enabled: true
873
-
874
- Lint/InvalidCharacterLiteral:
875
- Description: >-
876
- Checks for invalid character literals with a non-escaped
877
- whitespace character.
878
- Enabled: true
879
-
880
- Lint/LiteralInCondition:
881
- Description: 'Checks of literals used in conditions.'
882
- Enabled: true
883
-
884
- Lint/LiteralInInterpolation:
885
- Description: 'Checks for literals used in interpolation.'
886
- Enabled: true
887
-
888
- Lint/Loop:
889
- Description: >-
890
- Use Kernel#loop with break rather than begin/end/until or
891
- begin/end/while for post-loop tests.
892
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
893
- Enabled: true
894
-
895
- Lint/ParenthesesAsGroupedExpression:
896
- Description: >-
897
- Checks for method calls with a space before the opening
898
- parenthesis.
899
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
900
- Enabled: true
901
-
902
- Lint/RequireParentheses:
903
- Description: >-
904
- Use parentheses in the method call to avoid confusion
905
- about precedence.
906
- Enabled: true
907
-
908
- Lint/RescueException:
909
- Description: 'Avoid rescuing the Exception class.'
910
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
911
- Enabled: true
912
-
913
- Lint/ShadowingOuterLocalVariable:
914
- Description: >-
915
- Do not use the same name as outer local variable
916
- for block arguments or block local variables.
917
- Enabled: true
918
-
919
- Lint/SpaceBeforeFirstArg:
920
- Description: >-
921
- Put a space between a method name and the first argument
922
- in a method call without parentheses.
923
- Enabled: true
924
-
925
- Lint/StringConversionInInterpolation:
926
- Description: 'Checks for Object#to_s usage in string interpolation.'
927
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
928
- Enabled: true
929
-
930
- Lint/UnderscorePrefixedVariableName:
931
- Description: 'Do not use prefix `_` for a variable that is used.'
932
- Enabled: true
933
-
934
- Lint/UnusedBlockArgument:
935
- Description: 'Checks for unused block arguments.'
936
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
937
- Enabled: true
938
-
939
- Lint/UnusedMethodArgument:
940
- Description: 'Checks for unused method arguments.'
941
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
942
- Enabled: true
943
-
944
- Lint/UnreachableCode:
945
- Description: 'Unreachable code.'
946
- Enabled: true
947
-
948
- Lint/UselessAccessModifier:
949
- Description: 'Checks for useless access modifiers.'
950
- Enabled: true
951
-
952
- Lint/UselessAssignment:
953
- Description: 'Checks for useless assignment to a local variable.'
954
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
955
- Enabled: true
956
-
957
- Lint/UselessComparison:
958
- Description: 'Checks for comparison of something with itself.'
959
- Enabled: true
960
-
961
- Lint/UselessElseWithoutRescue:
962
- Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
963
- Enabled: true
964
-
965
- Lint/UselessSetterCall:
966
- Description: 'Checks for useless setter call to a local variable.'
967
- Enabled: true
968
-
969
- Lint/Void:
970
- Description: 'Possible use of operator/literal/variable in void context.'
971
- Enabled: true
972
-
973
- ##################### Rails ##################################
974
-
975
- Rails/ActionFilter:
976
- Description: 'Enforces consistent use of action filter methods.'
977
- Enabled: true
978
-
979
- Rails/DefaultScope:
980
- Description: 'Checks if the argument passed to default_scope is a block.'
981
- Enabled: true
982
-
983
- Rails/Delegate:
984
- Description: 'Prefer delegate method for delegations.'
985
- Enabled: true
986
-
987
- Rails/HasAndBelongsToMany:
988
- Description: 'Prefer has_many :through to has_and_belongs_to_many.'
989
- Enabled: true
990
-
991
- Rails/Output:
992
- Description: 'Checks for calls to puts, print, etc.'
993
- Enabled: true
994
-
995
- Rails/ReadWriteAttribute:
996
- Description: >-
997
- Checks for read_attribute(:attr) and
998
- write_attribute(:attr, val).
999
- Enabled: true
1000
-
1001
- Rails/ScopeArgs:
1002
- Description: 'Checks the arguments of ActiveRecord scopes.'
1003
- Enabled: true
1004
-
1005
- Rails/Validation:
1006
- Description: 'Use validates :attribute, hash of validations.'
1007
- Enabled: true