finstyle 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f26c307c9547fce50ff28e05b8d1c71c3cb24720
4
- data.tar.gz: 434ca3d637bbfab4e6a64065af0e5eba2f14db09
3
+ metadata.gz: 37d02430e54744acfe24be81474d9f7a40001b93
4
+ data.tar.gz: c3801b57d928c15d5b78de5e68355f2b5210d0d1
5
5
  SHA512:
6
- metadata.gz: a03ec604d53ce49184384dfc52973809349bb12f5278babfebe4da005376f5ff1f67ed3247f61d390898cc2a059fc50ec2e567076f205ea8142bbd1490409875
7
- data.tar.gz: 86b2ca4f84365c3503a4b8c336c292a5c0f8120aeebc86c4decf189bd59f76304556fbbb4aa0f4585aa3a395c1993ff4c6d4b8781970dbf21e896ea00bb392b9
6
+ metadata.gz: b7a3b9050dd0ea3cbee1022bd317a62978e0b0a90564cd0302ca3d76a8378f124d6232e651f4b7f9f199c8b507a18c8e243209b0af620c07f0d9d33a6e538568
7
+ data.tar.gz: fd17b7be5e221a0ab91b8ebadf030d9e62d08e08b653c6bec30ce8c7717bc049707f261079a0929f5e2bc42b1864c5a9250733353a13c21d169cc20be4d72f74
@@ -1,3 +1,10 @@
1
+ ## 1.3.0 / 2014-11-06
2
+
3
+ ### Breaking changes
4
+
5
+ * Upgrade to RuboCop 0.27.0 support. ([@fnichol][])
6
+
7
+
1
8
  ## 1.2.0 / 2014-08-30
2
9
 
3
10
  ### Breaking changes
@@ -1,13 +1,25 @@
1
1
  # These are all the cops that are disabled in the default configuration.
2
2
 
3
+ Style/CollectionMethods:
4
+ Description: 'Preferred collection methods.'
5
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#map-fine-select-reduce-size'
6
+ Enabled: false
7
+
8
+ Style/Encoding:
9
+ Description: 'Use UTF-8 as the source file encoding.'
10
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#utf-8'
11
+ Enabled: false
12
+
3
13
  Style/InlineComment:
4
14
  Description: 'Avoid inline comments.'
5
15
  Enabled: false
6
16
 
7
17
  Style/MethodCalledOnDoEndBlock:
8
18
  Description: 'Avoid chaining a method call on a do...end block.'
19
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
9
20
  Enabled: false
10
21
 
11
22
  Style/SymbolArray:
12
23
  Description: 'Use %i or %I for arrays of symbols.'
24
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-i'
13
25
  Enabled: false
@@ -2,6 +2,7 @@
2
2
 
3
3
  Style/AccessModifierIndentation:
4
4
  Description: Check indentation of private/protected visibility modifiers.
5
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
5
6
  Enabled: true
6
7
 
7
8
  Style/AccessorMethodName:
@@ -10,12 +11,14 @@ Style/AccessorMethodName:
10
11
 
11
12
  Style/Alias:
12
13
  Description: 'Use alias_method instead of alias.'
14
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
13
15
  Enabled: true
14
16
 
15
17
  Style/AlignArray:
16
18
  Description: >-
17
19
  Align the elements of an array literal if they span more than
18
20
  one line.
21
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
19
22
  Enabled: true
20
23
 
21
24
  Style/AlignHash:
@@ -28,38 +31,47 @@ Style/AlignParameters:
28
31
  Description: >-
29
32
  Align the parameters of a method call if they span more
30
33
  than one line.
34
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
31
35
  Enabled: true
32
36
 
33
37
  Style/AndOr:
34
38
  Description: 'Use &&/|| instead of and/or.'
39
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
35
40
  Enabled: true
36
41
 
37
42
  Style/ArrayJoin:
38
43
  Description: 'Use Array#join instead of Array#*.'
44
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
39
45
  Enabled: true
40
46
 
41
47
  Style/AsciiComments:
42
48
  Description: 'Use only ascii symbols in comments.'
49
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
43
50
  Enabled: true
44
51
 
45
52
  Style/AsciiIdentifiers:
46
53
  Description: 'Use only ascii symbols in identifiers.'
54
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
47
55
  Enabled: true
48
56
 
49
57
  Style/Attr:
50
58
  Description: 'Checks for uses of Module#attr.'
59
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
51
60
  Enabled: true
52
61
 
53
62
  Style/BeginBlock:
54
63
  Description: 'Avoid the use of BEGIN blocks.'
64
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
55
65
  Enabled: true
56
66
 
57
67
  Style/BarePercentLiterals:
58
68
  Description: 'Checks if usage of %() or %Q() matches configuration.'
69
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
59
70
  Enabled: true
60
71
 
61
72
  Style/BlockComments:
62
73
  Description: 'Do not use block comments.'
74
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
63
75
  Enabled: true
64
76
 
65
77
  Style/BlockEndNewline:
@@ -71,6 +83,7 @@ Style/Blocks:
71
83
  Avoid using {...} for multi-line blocks (multiline chaining is
72
84
  always ugly).
73
85
  Prefer {...} over do...end for single-line blocks.
86
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
74
87
  Enabled: true
75
88
 
76
89
  Style/BracesAroundHashParameters:
@@ -79,18 +92,22 @@ Style/BracesAroundHashParameters:
79
92
 
80
93
  Style/CaseEquality:
81
94
  Description: 'Avoid explicit use of the case equality operator(===).'
95
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
82
96
  Enabled: true
83
97
 
84
98
  Style/CaseIndentation:
85
99
  Description: 'Indentation of when in a case/when/[else/]end.'
100
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
86
101
  Enabled: true
87
102
 
88
103
  Style/CharacterLiteral:
89
104
  Description: 'Checks for uses of character literals.'
105
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
90
106
  Enabled: true
91
107
 
92
108
  Style/ClassAndModuleCamelCase:
93
109
  Description: 'Use CamelCase for classes and modules.'
110
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
94
111
  Enabled: true
95
112
 
96
113
  Style/ClassAndModuleChildren:
@@ -103,24 +120,24 @@ Style/ClassCheck:
103
120
 
104
121
  Style/ClassMethods:
105
122
  Description: 'Use self when defining module/class methods.'
123
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-singletons'
106
124
  Enabled: true
107
125
 
108
126
  Style/ClassVars:
109
127
  Description: 'Avoid the use of class variables.'
110
- Enabled: true
111
-
112
- Style/CollectionMethods:
113
- Description: 'Preferred collection methods.'
128
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
114
129
  Enabled: true
115
130
 
116
131
  Style/ColonMethodCall:
117
132
  Description: 'Do not use :: for method call.'
133
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
118
134
  Enabled: true
119
135
 
120
136
  Style/CommentAnnotation:
121
137
  Description: >-
122
138
  Checks formatting of special comments
123
139
  (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
140
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
124
141
  Enabled: true
125
142
 
126
143
  Style/CommentIndentation:
@@ -129,14 +146,17 @@ Style/CommentIndentation:
129
146
 
130
147
  Style/ConstantName:
131
148
  Description: 'Constants should use SCREAMING_SNAKE_CASE.'
149
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
132
150
  Enabled: true
133
151
 
134
152
  Style/DefWithParentheses:
135
153
  Description: 'Use def with parentheses when there are arguments.'
154
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
136
155
  Enabled: true
137
156
 
138
157
  Style/DeprecatedHashMethods:
139
158
  Description: 'Checks for use of deprecated Hash methods.'
159
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
140
160
  Enabled: true
141
161
 
142
162
  Style/Documentation:
@@ -145,18 +165,25 @@ Style/Documentation:
145
165
 
146
166
  Style/DotPosition:
147
167
  Description: 'Checks the position of the dot in multi-line method calls.'
168
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
148
169
  Enabled: true
149
170
 
150
171
  Style/DoubleNegation:
151
172
  Description: 'Checks for uses of double negation (!!).'
173
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
152
174
  Enabled: true
153
175
 
154
176
  Style/EachWithObject:
155
177
  Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
156
178
  Enabled: true
157
179
 
180
+ Style/ElseAlignment:
181
+ Description: 'Align elses and elsifs correctly.'
182
+ Enabled: true
183
+
158
184
  Style/EmptyLineBetweenDefs:
159
185
  Description: 'Use empty lines between defs.'
186
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
160
187
  Enabled: true
161
188
 
162
189
  Style/EmptyLines:
@@ -167,68 +194,85 @@ Style/EmptyLinesAroundAccessModifier:
167
194
  Description: "Keep blank lines around access modifiers."
168
195
  Enabled: true
169
196
 
170
- Style/EmptyLinesAroundBody:
171
- Description: "Keeps track of empty lines around expression bodies."
197
+ Style/EmptyLinesAroundClassBody:
198
+ Description: "Keeps track of empty lines around class bodies."
172
199
  Enabled: true
173
200
 
174
- Style/EmptyLiteral:
175
- Description: 'Prefer literals to Array.new/Hash.new/String.new.'
201
+ Style/EmptyLinesAroundModuleBody:
202
+ Description: "Keeps track of empty lines around module bodies."
176
203
  Enabled: true
177
204
 
178
- Style/Encoding:
179
- Description: 'Use UTF-8 as the source file encoding.'
205
+ Style/EmptyLinesAroundMethodBody:
206
+ Description: "Keeps track of empty lines around method bodies."
207
+ Enabled: true
208
+
209
+ Style/EmptyLiteral:
210
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
211
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
180
212
  Enabled: true
181
213
 
182
214
  Style/EndBlock:
183
215
  Description: 'Avoid the use of END blocks.'
216
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
184
217
  Enabled: true
185
218
 
186
219
  Style/EndOfLine:
187
220
  Description: 'Use Unix-style line endings.'
221
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
188
222
  Enabled: true
189
223
 
190
224
  Style/EvenOdd:
191
225
  Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
226
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
192
227
  Enabled: true
193
228
 
194
229
  Style/FileName:
195
230
  Description: 'Use snake_case for source file names.'
231
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
196
232
  Enabled: true
197
233
 
198
234
  Style/FlipFlop:
199
235
  Description: 'Checks for flip flops'
236
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
200
237
  Enabled: true
201
238
 
202
239
  Style/For:
203
240
  Description: 'Checks use of for or each in multiline loops.'
241
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
204
242
  Enabled: true
205
243
 
206
244
  Style/FormatString:
207
245
  Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
246
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
208
247
  Enabled: true
209
248
 
210
249
  Style/GlobalVars:
211
250
  Description: 'Do not introduce global variables.'
251
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
212
252
  Enabled: true
213
253
 
214
254
  Style/GuardClause:
215
255
  Description: 'Check for conditionals that can be replaced with guard clauses'
256
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
216
257
  Enabled: true
217
258
 
218
259
  Style/HashSyntax:
219
260
  Description: >-
220
261
  Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
221
262
  { :a => 1, :b => 2 }.
263
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
222
264
  Enabled: true
223
265
 
224
266
  Style/IfUnlessModifier:
225
267
  Description: >-
226
268
  Favor modifier if/unless usage when you have a
227
269
  single-line body.
270
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
228
271
  Enabled: true
229
272
 
230
273
  Style/IfWithSemicolon:
231
274
  Description: 'Never use if x; .... Use the ternary operator instead.'
275
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
232
276
  Enabled: true
233
277
 
234
278
  Style/IndentationConsistency:
@@ -237,6 +281,7 @@ Style/IndentationConsistency:
237
281
 
238
282
  Style/IndentationWidth:
239
283
  Description: 'Use 2 spaces for indentation.'
284
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
240
285
  Enabled: true
241
286
 
242
287
  Style/IndentArray:
@@ -249,16 +294,24 @@ Style/IndentHash:
249
294
  Description: 'Checks the indentation of the first key in a hash literal.'
250
295
  Enabled: true
251
296
 
297
+ Style/InfiniteLoop:
298
+ Description: 'Use Kernel#loop for infinite loops.'
299
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
300
+ Enabled: true
301
+
252
302
  Style/Lambda:
253
303
  Description: 'Use the new lambda literal syntax for single-line blocks.'
304
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
254
305
  Enabled: true
255
306
 
256
307
  Style/LambdaCall:
257
308
  Description: 'Use lambda.call(...) instead of lambda.(...).'
309
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
258
310
  Enabled: true
259
311
 
260
312
  Style/LeadingCommentSpace:
261
313
  Description: 'Comments should start with a space.'
314
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
262
315
  Enabled: true
263
316
 
264
317
  Style/LineEndConcatenation:
@@ -269,24 +322,29 @@ Style/LineEndConcatenation:
269
322
 
270
323
  Style/MethodCallParentheses:
271
324
  Description: 'Do not use parentheses for method calls with no arguments.'
325
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
272
326
  Enabled: true
273
327
 
274
328
  Style/MethodDefParentheses:
275
329
  Description: >-
276
330
  Checks if the method definitions have or don't have
277
331
  parentheses.
332
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
278
333
  Enabled: true
279
334
 
280
335
  Style/MethodName:
281
336
  Description: 'Use the configured style when naming methods.'
337
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
282
338
  Enabled: true
283
339
 
284
340
  Style/ModuleFunction:
285
341
  Description: 'Checks for usage of `extend self` in modules.'
342
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
286
343
  Enabled: true
287
344
 
288
345
  Style/MultilineBlockChain:
289
346
  Description: 'Avoid multi-line chains of blocks.'
347
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
290
348
  Enabled: true
291
349
 
292
350
  Style/MultilineBlockLayout:
@@ -295,68 +353,88 @@ Style/MultilineBlockLayout:
295
353
 
296
354
  Style/MultilineIfThen:
297
355
  Description: 'Never use then for multi-line if/unless.'
356
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
357
+ Enabled: true
358
+
359
+ Style/MultilineOperationIndentation:
360
+ Description: >-
361
+ Checks indentation of binary operations that span more than
362
+ one line.
298
363
  Enabled: true
299
364
 
300
365
  Style/MultilineTernaryOperator:
301
366
  Description: >-
302
367
  Avoid multi-line ?: (the ternary operator);
303
368
  use if/unless instead.
369
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
304
370
  Enabled: true
305
371
 
306
372
  Style/NegatedIf:
307
373
  Description: >-
308
374
  Favor unless over if for negative conditions
309
375
  (or control flow or).
376
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
310
377
  Enabled: true
311
378
 
312
379
  Style/NegatedWhile:
313
380
  Description: 'Favor until over while for negative conditions.'
381
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
314
382
  Enabled: true
315
383
 
316
384
  Style/NestedTernaryOperator:
317
385
  Description: 'Use one expression per branch in a ternary operator.'
386
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
318
387
  Enabled: true
319
388
 
320
389
  Style/Next:
321
390
  Description: 'Use `next` to skip iteration instead of a condition at the end.'
391
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
322
392
  Enabled: true
323
393
 
324
394
  Style/NilComparison:
325
395
  Description: 'Prefer x.nil? to x == nil.'
396
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
326
397
  Enabled: true
327
398
 
328
399
  Style/NonNilCheck:
329
400
  Description: 'Checks for redundant nil checks.'
401
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
330
402
  Enabled: true
331
403
 
332
404
  Style/Not:
333
405
  Description: 'Use ! instead of not.'
406
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
334
407
  Enabled: true
335
408
 
336
409
  Style/NumericLiterals:
337
410
  Description: >-
338
411
  Add underscores to large numeric literals to improve their
339
412
  readability.
413
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
340
414
  Enabled: true
341
415
 
342
416
  Style/OneLineConditional:
343
417
  Description: >-
344
418
  Favor the ternary operator(?:) over
345
419
  if/then/else/end constructs.
420
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
346
421
  Enabled: true
347
422
 
348
423
  Style/OpMethod:
349
424
  Description: 'When defining binary operators, name the argument other.'
425
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
350
426
  Enabled: true
351
427
 
352
428
  Style/ParenthesesAroundCondition:
353
429
  Description: >-
354
430
  Don't use parentheses around the condition of an
355
431
  if/unless/while.
432
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
356
433
  Enabled: true
357
434
 
358
435
  Style/PercentLiteralDelimiters:
359
436
  Description: 'Use `%`-literal delimiters consistently'
437
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
360
438
  Enabled: true
361
439
 
362
440
  Style/PercentQLiterals:
@@ -365,34 +443,42 @@ Style/PercentQLiterals:
365
443
 
366
444
  Style/PerlBackrefs:
367
445
  Description: 'Avoid Perl-style regex back references.'
446
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
368
447
  Enabled: true
369
448
 
370
449
  Style/PredicateName:
371
450
  Description: 'Check the names of predicate methods.'
451
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
372
452
  Enabled: true
373
453
 
374
454
  Style/Proc:
375
455
  Description: 'Use proc instead of Proc.new.'
456
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
376
457
  Enabled: true
377
458
 
378
459
  Style/RaiseArgs:
379
460
  Description: 'Checks the arguments passed to raise/fail.'
461
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
380
462
  Enabled: true
381
463
 
382
464
  Style/RedundantBegin:
383
465
  Description: "Don't use begin blocks when they are not needed."
466
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
384
467
  Enabled: true
385
468
 
386
469
  Style/RedundantException:
387
470
  Description: "Checks for an obsolete RuntimeException argument in raise/fail."
471
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
388
472
  Enabled: true
389
473
 
390
474
  Style/RedundantReturn:
391
475
  Description: "Don't use return where it's not required."
476
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
392
477
  Enabled: true
393
478
 
394
479
  Style/RedundantSelf:
395
480
  Description: "Don't use self where it's not needed."
481
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
396
482
  Enabled: true
397
483
 
398
484
  Style/RegexpLiteral:
@@ -401,32 +487,39 @@ Style/RegexpLiteral:
401
487
  `MaxSlashes` '/' characters.
402
488
  Use %r only for regular expressions matching more than
403
489
  `MaxSlashes` '/' character.
490
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
404
491
  Enabled: true
405
492
 
406
493
  Style/RescueModifier:
407
494
  Description: 'Avoid using rescue in its modifier form.'
495
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
408
496
  Enabled: true
409
497
 
410
498
  Style/SelfAssignment:
411
499
  Description: >-
412
500
  Checks for places where self-assignment shorthand should have
413
501
  been used.
502
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
414
503
  Enabled: true
415
504
 
416
505
  Style/Semicolon:
417
506
  Description: "Don't use semicolons to terminate expressions."
507
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
418
508
  Enabled: true
419
509
 
420
510
  Style/SignalException:
421
511
  Description: 'Checks for proper usage of fail and raise.'
512
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
422
513
  Enabled: true
423
514
 
424
515
  Style/SingleLineBlockParams:
425
516
  Description: 'Enforces the names of some block params.'
517
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
426
518
  Enabled: true
427
519
 
428
520
  Style/SingleLineMethods:
429
521
  Description: 'Avoid single-line methods.'
522
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
430
523
  Enabled: true
431
524
 
432
525
  Style/SingleSpaceBeforeFirstArg:
@@ -437,10 +530,12 @@ Style/SingleSpaceBeforeFirstArg:
437
530
 
438
531
  Style/SpaceAfterColon:
439
532
  Description: 'Use spaces after colons.'
533
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
440
534
  Enabled: true
441
535
 
442
536
  Style/SpaceAfterComma:
443
537
  Description: 'Use spaces after commas.'
538
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
444
539
  Enabled: true
445
540
 
446
541
  Style/SpaceAfterControlKeyword:
@@ -451,14 +546,17 @@ Style/SpaceAfterMethodName:
451
546
  Description: >-
452
547
  Never put a space between a method name and the opening
453
548
  parenthesis in a method definition.
549
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
454
550
  Enabled: true
455
551
 
456
552
  Style/SpaceAfterNot:
457
553
  Description: Tracks redundant space after the ! operator.
554
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
458
555
  Enabled: true
459
556
 
460
557
  Style/SpaceAfterSemicolon:
461
558
  Description: 'Use spaces after semicolons.'
559
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
462
560
  Enabled: true
463
561
 
464
562
  Style/SpaceBeforeBlockBraces:
@@ -493,10 +591,12 @@ Style/SpaceAroundEqualsInParameterDefault:
493
591
  Checks that the equals signs in parameter default assignments
494
592
  have or don't have surrounding space depending on
495
593
  configuration.
594
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
496
595
  Enabled: true
497
596
 
498
597
  Style/SpaceAroundOperators:
499
598
  Description: 'Use spaces around operators.'
599
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
500
600
  Enabled: true
501
601
 
502
602
  Style/SpaceBeforeModifierKeyword:
@@ -505,48 +605,74 @@ Style/SpaceBeforeModifierKeyword:
505
605
 
506
606
  Style/SpaceInsideBrackets:
507
607
  Description: 'No spaces after [ or before ].'
608
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
508
609
  Enabled: true
509
610
 
510
611
  Style/SpaceInsideHashLiteralBraces:
511
612
  Description: "Use spaces inside hash literal braces - or don't."
613
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
512
614
  Enabled: true
513
615
 
514
616
  Style/SpaceInsideParens:
515
617
  Description: 'No spaces after ( or before ).'
618
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
619
+ Enabled: true
620
+
621
+ Style/SpaceInsideRangeLiteral:
622
+ Description: 'No spaces inside range literals.'
623
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
516
624
  Enabled: true
517
625
 
518
626
  Style/SpecialGlobalVars:
519
627
  Description: 'Avoid Perl-style global variables.'
628
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
520
629
  Enabled: true
521
630
 
522
631
  Style/StringLiterals:
523
632
  Description: 'Checks if uses of quotes match the configured preference.'
633
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
634
+ Enabled: true
635
+
636
+ Style/StringLiteralsInInterpolation:
637
+ Description: >-
638
+ Checks if uses of quotes inside expressions in interpolated
639
+ strings match the configured preference.
640
+ Enabled: true
641
+
642
+ Style/SymbolProc:
643
+ Description: 'Use symbols as procs instead of blocks when possible.'
524
644
  Enabled: true
525
645
 
526
646
  Style/Tab:
527
647
  Description: 'No hard tabs.'
648
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
528
649
  Enabled: true
529
650
 
530
651
  Style/TrailingBlankLines:
531
652
  Description: 'Checks trailing blank lines and final newline.'
653
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
532
654
  Enabled: true
533
655
 
534
656
  Style/TrailingComma:
535
657
  Description: 'Checks for trailing comma in parameter lists and literals.'
658
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
536
659
  Enabled: true
537
660
 
538
661
  Style/TrailingWhitespace:
539
662
  Description: 'Avoid trailing whitespace.'
663
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
540
664
  Enabled: true
541
665
 
542
666
  Style/TrivialAccessors:
543
667
  Description: 'Prefer attr_* methods to trivial readers/writers.'
668
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
544
669
  Enabled: true
545
670
 
546
671
  Style/UnlessElse:
547
672
  Description: >-
548
673
  Never use unless with else. Rewrite these with the positive
549
674
  case first.
675
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
550
676
  Enabled: true
551
677
 
552
678
  Style/UnneededCapitalW:
@@ -555,44 +681,59 @@ Style/UnneededCapitalW:
555
681
 
556
682
  Style/UnneededPercentQ:
557
683
  Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
684
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
558
685
  Enabled: true
559
686
 
560
687
  Style/UnneededPercentX:
561
688
  Description: 'Checks for %x when `` would do.'
689
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
562
690
  Enabled: true
563
691
 
564
692
  Style/VariableInterpolation:
565
693
  Description: >-
566
694
  Don't interpolate global, instance and class variables
567
695
  directly in strings.
696
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
568
697
  Enabled: true
569
698
 
570
699
  Style/VariableName:
571
700
  Description: 'Use the configured style when naming variables.'
701
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
572
702
  Enabled: true
573
703
 
574
704
  Style/WhenThen:
575
705
  Description: 'Use when x then ... for one-line cases.'
706
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
576
707
  Enabled: true
577
708
 
578
709
  Style/WhileUntilDo:
579
710
  Description: 'Checks for redundant do after while or until.'
711
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
580
712
  Enabled: true
581
713
 
582
714
  Style/WhileUntilModifier:
583
715
  Description: >-
584
716
  Favor modifier while/until usage when you have a
585
717
  single-line body.
718
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
586
719
  Enabled: true
587
720
 
588
721
  Style/WordArray:
589
722
  Description: 'Use %w or %W for arrays of words.'
723
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
590
724
  Enabled: true
591
725
 
592
726
  #################### Metrics ################################
593
727
 
728
+ Metrics/AbcSize:
729
+ Description: >-
730
+ A calculated magnitude based on number of assignments,
731
+ branches, and conditions.
732
+ Enabled: true
733
+
594
734
  Metrics/BlockNesting:
595
735
  Description: 'Avoid excessive block nesting'
736
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
596
737
  Enabled: true
597
738
 
598
739
  Metrics/ClassLength:
@@ -607,14 +748,17 @@ Metrics/CyclomaticComplexity:
607
748
 
608
749
  Metrics/LineLength:
609
750
  Description: 'Limit lines to 80 characters.'
751
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
610
752
  Enabled: true
611
753
 
612
754
  Metrics/MethodLength:
613
755
  Description: 'Avoid methods longer than 10 lines of code.'
756
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
614
757
  Enabled: true
615
758
 
616
759
  Metrics/ParameterLists:
617
760
  Description: 'Avoid parameter lists longer than three or four parameters.'
761
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
618
762
  Enabled: true
619
763
 
620
764
  Metrics/PerceivedComplexity:
@@ -630,6 +774,7 @@ Lint/AmbiguousOperator:
630
774
  Description: >-
631
775
  Checks for ambiguous operators in the first argument of a
632
776
  method invocation without parentheses.
777
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
633
778
  Enabled: true
634
779
 
635
780
  Lint/AmbiguousRegexpLiteral:
@@ -640,6 +785,7 @@ Lint/AmbiguousRegexpLiteral:
640
785
 
641
786
  Lint/AssignmentInCondition:
642
787
  Description: "Don't use assignment in conditions."
788
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
643
789
  Enabled: true
644
790
 
645
791
  Lint/BlockAlignment:
@@ -650,6 +796,7 @@ Lint/ConditionPosition:
650
796
  Description: >-
651
797
  Checks for condition placed in a confusing position relative to
652
798
  the keyword.
799
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
653
800
  Enabled: true
654
801
 
655
802
  Lint/Debugger:
@@ -686,6 +833,7 @@ Lint/EndInMethod:
686
833
 
687
834
  Lint/EnsureReturn:
688
835
  Description: 'Never use return in an ensure block.'
836
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
689
837
  Enabled: true
690
838
 
691
839
  Lint/Eval:
@@ -694,6 +842,7 @@ Lint/Eval:
694
842
 
695
843
  Lint/HandleExceptions:
696
844
  Description: "Don't suppress exception."
845
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
697
846
  Enabled: true
698
847
 
699
848
  Lint/InvalidCharacterLiteral:
@@ -714,12 +863,14 @@ Lint/Loop:
714
863
  Description: >-
715
864
  Use Kernel#loop with break rather than begin/end/until or
716
865
  begin/end/while for post-loop tests.
866
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
717
867
  Enabled: true
718
868
 
719
869
  Lint/ParenthesesAsGroupedExpression:
720
870
  Description: >-
721
871
  Checks for method calls with a space before the opening
722
872
  parenthesis.
873
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
723
874
  Enabled: true
724
875
 
725
876
  Lint/RequireParentheses:
@@ -730,6 +881,7 @@ Lint/RequireParentheses:
730
881
 
731
882
  Lint/RescueException:
732
883
  Description: 'Avoid rescuing the Exception class.'
884
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
733
885
  Enabled: true
734
886
 
735
887
  Lint/ShadowingOuterLocalVariable:
@@ -746,6 +898,7 @@ Lint/SpaceBeforeFirstArg:
746
898
 
747
899
  Lint/StringConversionInInterpolation:
748
900
  Description: 'Checks for Object#to_s usage in string interpolation.'
901
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
749
902
  Enabled: true
750
903
 
751
904
  Lint/UnderscorePrefixedVariableName:
@@ -754,10 +907,12 @@ Lint/UnderscorePrefixedVariableName:
754
907
 
755
908
  Lint/UnusedBlockArgument:
756
909
  Description: 'Checks for unused block arguments.'
910
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
757
911
  Enabled: true
758
912
 
759
913
  Lint/UnusedMethodArgument:
760
914
  Description: 'Checks for unused method arguments.'
915
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
761
916
  Enabled: true
762
917
 
763
918
  Lint/UnreachableCode:
@@ -770,6 +925,7 @@ Lint/UselessAccessModifier:
770
925
 
771
926
  Lint/UselessAssignment:
772
927
  Description: 'Checks for useless assignment to a local variable.'
928
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
773
929
  Enabled: true
774
930
 
775
931
  Lint/UselessComparison:
@@ -821,5 +977,5 @@ Rails/ScopeArgs:
821
977
  Enabled: true
822
978
 
823
979
  Rails/Validation:
824
- Description: 'Use sexy validations.'
980
+ Description: 'Use validates :attribute, hash of validations.'
825
981
  Enabled: true
@@ -18,6 +18,12 @@ Lint/EndAlignment:
18
18
  ### Metrics Cops
19
19
  #
20
20
 
21
+ # Using a higher watermark as we are not dealing with single line Ruby on Rails
22
+ # application logic but rather library codebases. Also, the cane gem is often
23
+ # used to also enforce ABC complexity.
24
+ Metrics/AbcSize:
25
+ Max: 30
26
+
21
27
  # ABC complexity is a far better code smell signal than raw class length.
22
28
  Metrics/ClassLength:
23
29
  Max: 300
@@ -60,11 +66,23 @@ Style/DotPosition:
60
66
  Style/EachWithObject:
61
67
  Enabled: false
62
68
 
69
+ # Temporarily disabled, pending release of Rubocop later than 0.27.0 which
70
+ # includes https://github.com/bbatsov/rubocop/issues/1416 fix
71
+ # @TODO Remove when Rubocop > 0.27.0 is released.
72
+ Style/ElseAlignment:
73
+ Enabled: false
74
+
63
75
  # Whitespace between modules/classes/methods can be helpful to read and
64
76
  # don't hurt anybody.
65
- Style/EmptyLinesAroundBody:
77
+ Style/EmptyLinesAroundClassBody:
78
+ Enabled: false
79
+
80
+ Style/EmptyLinesAroundModuleBody:
66
81
  Enabled: false
67
82
 
83
+ #Style/EmptyLinesAroundBody:
84
+ # Enabled: false
85
+
68
86
  Style/HashSyntax:
69
87
  EnforcedStyle: hash_rockets
70
88
 
@@ -86,6 +104,9 @@ Style/IfUnlessModifier:
86
104
  Style/MultilineBlockChain:
87
105
  Enabled: false
88
106
 
107
+ Style/MultilineOperationIndentation:
108
+ EnforcedStyle: indented
109
+
89
110
  # Using unless in many circumstances can place an overly large cognitive load
90
111
  # on someone reading the code. Unless can be great in postfix/modifier position
91
112
  # but no so much at the head of a conditional block.
@@ -120,6 +141,12 @@ Style/SignalException:
120
141
  Style/StringLiterals:
121
142
  EnforcedStyle: double_quotes
122
143
 
144
+ # Temporarily disabled, pending releas of Rubocop later than 0.27.0, which
145
+ # includes https://github.com/bbatsov/rubocop/issues/1415 fix
146
+ # @TODO Remve when Rubocop > 0.27.0 is released.
147
+ Style/StringLiteralsInInterpolation:
148
+ Enabled: false
149
+
123
150
  # Nothing but a single-quoting strings rule in disguise
124
151
  Style/UnneededCapitalW:
125
152
  Enabled: false
@@ -13,6 +13,7 @@ AllCops:
13
13
  - '**/*.podspec'
14
14
  - '**/*.jbuilder'
15
15
  - '**/*.rake'
16
+ - '**/*.opal'
16
17
  - '**/Gemfile'
17
18
  - '**/Rakefile'
18
19
  - '**/Capfile'
@@ -20,6 +21,9 @@ AllCops:
20
21
  - '**/Podfile'
21
22
  - '**/Thorfile'
22
23
  - '**/Vagrantfile'
24
+ - '**/Berksfile'
25
+ - '**/Cheffile'
26
+ - '**/Vagabondfile'
23
27
  Exclude:
24
28
  - 'vendor/**/*'
25
29
  # By default, the rails cops are not run. Override in project or home
@@ -100,8 +104,8 @@ Style/AlignHash:
100
104
  Style/AlignParameters:
101
105
  # Alignment of parameters in multi-line method calls.
102
106
  #
103
- # The `with_first_parameter` style aligns the following lines along the same column
104
- # as the first parameter.
107
+ # The `with_first_parameter` style aligns the following lines along the same
108
+ # column as the first parameter.
105
109
  #
106
110
  # method_call(a,
107
111
  # b)
@@ -210,6 +214,18 @@ Style/EmptyLineBetweenDefs:
210
214
  # need an empty line between them.
211
215
  AllowAdjacentOneLineDefs: false
212
216
 
217
+ Style/EmptyLinesAroundClassBody:
218
+ EnforcedStyle: no_empty_lines
219
+ SupportedStyles:
220
+ - empty_lines
221
+ - no_empty_lines
222
+
223
+ Style/EmptyLinesAroundModuleBody:
224
+ EnforcedStyle: no_empty_lines
225
+ SupportedStyles:
226
+ - empty_lines
227
+ - no_empty_lines
228
+
213
229
  # Checks whether the source file has a utf-8 encoding comment or not
214
230
  Style/Encoding:
215
231
  EnforcedStyle: always
@@ -218,13 +234,9 @@ Style/Encoding:
218
234
  - always
219
235
 
220
236
  Style/FileName:
221
- Exclude:
222
- - '**/Rakefile'
223
- - '**/Gemfile'
224
- - '**/Capfile'
225
- - '**/Vagrantfile'
226
- - '**/Podfile'
227
- - '**/Thorfile'
237
+ # File names listed in AllCops:Include are excluded by default. Add extra
238
+ # excludes here.
239
+ Exclude: []
228
240
 
229
241
  # Checks use of for or each in multiline loops.
230
242
  Style/For:
@@ -259,6 +271,10 @@ Style/HashSyntax:
259
271
  Style/IfUnlessModifier:
260
272
  MaxLineLength: 80
261
273
 
274
+ Style/IndentationWidth:
275
+ # Number of spaces for each indentation level.
276
+ Width: 2
277
+
262
278
  # Checks the indentation of the first key in a hash literal.
263
279
  Style/IndentHash:
264
280
  # The value `special_inside_parentheses` means that hash literals with braces
@@ -312,6 +328,12 @@ Style/MethodName:
312
328
  - snake_case
313
329
  - camelCase
314
330
 
331
+ Style/MultilineOperationIndentation:
332
+ EnforcedStyle: aligned
333
+ SupportedStyles:
334
+ - aligned
335
+ - indented
336
+
315
337
  Style/NumericLiterals:
316
338
  MinDigits: 5
317
339
 
@@ -338,6 +360,12 @@ Style/PercentQLiterals:
338
360
  - upper_case_q # Always use %Q
339
361
 
340
362
  Style/PredicateName:
363
+ # Predicate name prefices.
364
+ NamePrefix:
365
+ - is_
366
+ - has_
367
+ - have_
368
+ # Predicate name prefices that should be removed.
341
369
  NamePrefixBlacklist:
342
370
  - is_
343
371
  - has_
@@ -387,6 +415,12 @@ Style/StringLiterals:
387
415
  - single_quotes
388
416
  - double_quotes
389
417
 
418
+ Style/StringLiteralsInInterpolation:
419
+ EnforcedStyle: single_quotes
420
+ SupportedStyles:
421
+ - single_quotes
422
+ - double_quotes
423
+
390
424
  Style/SpaceAroundEqualsInParameterDefault:
391
425
  EnforcedStyle: space
392
426
  SupportedStyles:
@@ -416,6 +450,12 @@ Style/SpaceInsideHashLiteralBraces:
416
450
  - space
417
451
  - no_space
418
452
 
453
+ Style/SymbolProc:
454
+ # A list of method names to be ignored by the check.
455
+ # The names should be fairly unique, otherwise you'll end up ignoring lots of code.
456
+ IgnoredMethods:
457
+ - respond_to
458
+
419
459
  Style/TrailingBlankLines:
420
460
  EnforcedStyle: final_newline
421
461
  SupportedStyles:
@@ -474,9 +514,16 @@ Style/WhileUntilModifier:
474
514
 
475
515
  Style/WordArray:
476
516
  MinSize: 0
517
+ # The regular expression WordRegex decides what is considered a word.
518
+ WordRegex: !ruby/regexp '/\A[\p{Word}]+\z/'
477
519
 
478
520
  ##################### Metrics ##################################
479
521
 
522
+ Metrics/AbcSize:
523
+ # The ABC size is a calculated magnitude, so this number can be a Fixnum or
524
+ # a Float.
525
+ Max: 15
526
+
480
527
  Metrics/BlockNesting:
481
528
  Max: 3
482
529
 
@@ -491,6 +538,9 @@ Metrics/CyclomaticComplexity:
491
538
  Metrics/LineLength:
492
539
  Max: 80
493
540
  AllowURI: true
541
+ URISchemes:
542
+ - http
543
+ - https
494
544
 
495
545
  Metrics/MethodLength:
496
546
  CountComments: false # count full line comments?
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.required_ruby_version = ">= 1.9.3"
23
23
 
24
- spec.add_dependency("rubocop", "0.25.0")
24
+ spec.add_dependency("rubocop", "0.27.0")
25
25
 
26
26
  spec.add_development_dependency("bundler", "~> 1.6")
27
27
  spec.add_development_dependency("rake", "~> 10.0")
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module Finstyle
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Nichol
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-30 00:00:00.000000000 Z
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.25.0
19
+ version: 0.27.0
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: 0.25.0
26
+ version: 0.27.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement