rubocop 0.32.1 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubocop might be problematic. Click here for more details.

Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +58 -0
  3. data/README.md +22 -4
  4. data/config/default.yml +29 -10
  5. data/config/disabled.yml +8 -4
  6. data/config/enabled.yml +40 -1
  7. data/lib/rubocop.rb +8 -0
  8. data/lib/rubocop/cli.rb +1 -0
  9. data/lib/rubocop/config_loader.rb +23 -2
  10. data/lib/rubocop/cop/lint/block_alignment.rb +1 -1
  11. data/lib/rubocop/cop/lint/circular_argument_reference.rb +38 -0
  12. data/lib/rubocop/cop/lint/def_end_alignment.rb +8 -4
  13. data/lib/rubocop/cop/lint/deprecated_class_methods.rb +38 -21
  14. data/lib/rubocop/cop/lint/duplicate_methods.rb +1 -1
  15. data/lib/rubocop/cop/lint/format_parameter_mismatch.rb +95 -0
  16. data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +1 -1
  17. data/lib/rubocop/cop/mixin/on_method_def.rb +4 -5
  18. data/lib/rubocop/cop/mixin/string_literals_help.rb +1 -1
  19. data/lib/rubocop/cop/performance/count.rb +2 -0
  20. data/lib/rubocop/cop/performance/detect.rb +11 -2
  21. data/lib/rubocop/cop/performance/flat_map.rb +3 -3
  22. data/lib/rubocop/cop/performance/string_replacement.rb +161 -0
  23. data/lib/rubocop/cop/rails/date.rb +8 -8
  24. data/lib/rubocop/cop/rails/time_zone.rb +22 -13
  25. data/lib/rubocop/cop/style/block_delimiters.rb +6 -1
  26. data/lib/rubocop/cop/style/documentation.rb +1 -1
  27. data/lib/rubocop/cop/style/extra_spacing.rb +84 -5
  28. data/lib/rubocop/cop/style/first_parameter_indentation.rb +2 -0
  29. data/lib/rubocop/cop/style/indentation_width.rb +28 -4
  30. data/lib/rubocop/cop/style/initial_indentation.rb +32 -0
  31. data/lib/rubocop/cop/style/method_call_parentheses.rb +20 -1
  32. data/lib/rubocop/cop/style/one_line_conditional.rb +8 -4
  33. data/lib/rubocop/cop/style/option_hash.rb +56 -0
  34. data/lib/rubocop/cop/style/optional_arguments.rb +49 -0
  35. data/lib/rubocop/cop/style/parallel_assignment.rb +3 -0
  36. data/lib/rubocop/cop/style/percent_literal_delimiters.rb +3 -66
  37. data/lib/rubocop/cop/style/redundant_return.rb +20 -3
  38. data/lib/rubocop/cop/style/rescue_ensure_alignment.rb +77 -0
  39. data/lib/rubocop/cop/style/rescue_modifier.rb +4 -28
  40. data/lib/rubocop/cop/style/send.rb +18 -0
  41. data/lib/rubocop/cop/style/space_inside_string_interpolation.rb +32 -13
  42. data/lib/rubocop/cop/style/symbol_literal.rb +1 -1
  43. data/lib/rubocop/cop/style/trivial_accessors.rb +10 -1
  44. data/lib/rubocop/cop/style/while_until_do.rb +1 -1
  45. data/lib/rubocop/cop/style/word_array.rb +13 -1
  46. data/lib/rubocop/formatter/disabled_config_formatter.rb +54 -5
  47. data/lib/rubocop/options.rb +81 -55
  48. data/lib/rubocop/version.rb +1 -1
  49. data/relnotes/v0.33.0.md +157 -0
  50. metadata +11 -2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.1
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-24 00:00:00.000000000 Z
13
+ date: 2015-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rainbow
@@ -202,6 +202,7 @@ files:
202
202
  - lib/rubocop/cop/lint/ambiguous_regexp_literal.rb
203
203
  - lib/rubocop/cop/lint/assignment_in_condition.rb
204
204
  - lib/rubocop/cop/lint/block_alignment.rb
205
+ - lib/rubocop/cop/lint/circular_argument_reference.rb
205
206
  - lib/rubocop/cop/lint/condition_position.rb
206
207
  - lib/rubocop/cop/lint/debugger.rb
207
208
  - lib/rubocop/cop/lint/def_end_alignment.rb
@@ -215,6 +216,7 @@ files:
215
216
  - lib/rubocop/cop/lint/end_in_method.rb
216
217
  - lib/rubocop/cop/lint/ensure_return.rb
217
218
  - lib/rubocop/cop/lint/eval.rb
219
+ - lib/rubocop/cop/lint/format_parameter_mismatch.rb
218
220
  - lib/rubocop/cop/lint/handle_exceptions.rb
219
221
  - lib/rubocop/cop/lint/invalid_character_literal.rb
220
222
  - lib/rubocop/cop/lint/literal_in_condition.rb
@@ -286,6 +288,7 @@ files:
286
288
  - lib/rubocop/cop/performance/reverse_each.rb
287
289
  - lib/rubocop/cop/performance/sample.rb
288
290
  - lib/rubocop/cop/performance/size.rb
291
+ - lib/rubocop/cop/performance/string_replacement.rb
289
292
  - lib/rubocop/cop/rails/action_filter.rb
290
293
  - lib/rubocop/cop/rails/date.rb
291
294
  - lib/rubocop/cop/rails/default_scope.rb
@@ -369,6 +372,7 @@ files:
369
372
  - lib/rubocop/cop/style/indentation_consistency.rb
370
373
  - lib/rubocop/cop/style/indentation_width.rb
371
374
  - lib/rubocop/cop/style/infinite_loop.rb
375
+ - lib/rubocop/cop/style/initial_indentation.rb
372
376
  - lib/rubocop/cop/style/inline_comment.rb
373
377
  - lib/rubocop/cop/style/lambda.rb
374
378
  - lib/rubocop/cop/style/lambda_call.rb
@@ -395,6 +399,8 @@ files:
395
399
  - lib/rubocop/cop/style/numeric_literals.rb
396
400
  - lib/rubocop/cop/style/one_line_conditional.rb
397
401
  - lib/rubocop/cop/style/op_method.rb
402
+ - lib/rubocop/cop/style/option_hash.rb
403
+ - lib/rubocop/cop/style/optional_arguments.rb
398
404
  - lib/rubocop/cop/style/parallel_assignment.rb
399
405
  - lib/rubocop/cop/style/parentheses_around_condition.rb
400
406
  - lib/rubocop/cop/style/percent_literal_delimiters.rb
@@ -408,9 +414,11 @@ files:
408
414
  - lib/rubocop/cop/style/redundant_return.rb
409
415
  - lib/rubocop/cop/style/redundant_self.rb
410
416
  - lib/rubocop/cop/style/regexp_literal.rb
417
+ - lib/rubocop/cop/style/rescue_ensure_alignment.rb
411
418
  - lib/rubocop/cop/style/rescue_modifier.rb
412
419
  - lib/rubocop/cop/style/self_assignment.rb
413
420
  - lib/rubocop/cop/style/semicolon.rb
421
+ - lib/rubocop/cop/style/send.rb
414
422
  - lib/rubocop/cop/style/signal_exception.rb
415
423
  - lib/rubocop/cop/style/single_line_block_params.rb
416
424
  - lib/rubocop/cop/style/single_line_methods.rb
@@ -515,6 +523,7 @@ files:
515
523
  - relnotes/v0.31.0.md
516
524
  - relnotes/v0.32.0.md
517
525
  - relnotes/v0.32.1.md
526
+ - relnotes/v0.33.0.md
518
527
  - rubocop.gemspec
519
528
  homepage: http://github.com/bbatsov/rubocop
520
529
  licenses: