rubocop 0.38.0 → 0.39.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -3
  3. data/config/default.yml +13 -0
  4. data/config/enabled.yml +15 -3
  5. data/lib/rubocop.rb +2 -0
  6. data/lib/rubocop/ast_node/builder.rb +6 -0
  7. data/lib/rubocop/cli.rb +2 -2
  8. data/lib/rubocop/config.rb +13 -13
  9. data/lib/rubocop/config_loader.rb +5 -28
  10. data/lib/rubocop/config_loader_resolver.rb +42 -0
  11. data/lib/rubocop/cop/cop.rb +4 -5
  12. data/lib/rubocop/cop/lint/assignment_in_condition.rb +1 -1
  13. data/lib/rubocop/cop/lint/literal_in_interpolation.rb +9 -2
  14. data/lib/rubocop/cop/mixin/statement_modifier.rb +5 -4
  15. data/lib/rubocop/cop/performance/case_when_splat.rb +1 -1
  16. data/lib/rubocop/cop/performance/count.rb +20 -0
  17. data/lib/rubocop/cop/performance/detect.rb +12 -0
  18. data/lib/rubocop/cop/performance/redundant_merge.rb +10 -1
  19. data/lib/rubocop/cop/performance/times_map.rb +14 -0
  20. data/lib/rubocop/cop/style/case_indentation.rb +14 -7
  21. data/lib/rubocop/cop/style/conditional_assignment.rb +221 -20
  22. data/lib/rubocop/cop/style/file_name.rb +31 -17
  23. data/lib/rubocop/cop/style/if_unless_modifier.rb +8 -0
  24. data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +45 -0
  25. data/lib/rubocop/cop/style/multiline_method_call_indentation.rb +3 -2
  26. data/lib/rubocop/cop/style/next.rb +6 -1
  27. data/lib/rubocop/cop/style/one_line_conditional.rb +37 -8
  28. data/lib/rubocop/cop/style/redundant_parentheses.rb +9 -0
  29. data/lib/rubocop/cop/style/redundant_self.rb +1 -1
  30. data/lib/rubocop/cop/style/space_around_keyword.rb +10 -1
  31. data/lib/rubocop/cop/style/special_global_vars.rb +23 -14
  32. data/lib/rubocop/cop/style/zero_length_predicate.rb +25 -0
  33. data/lib/rubocop/formatter/html_formatter.rb +3 -3
  34. data/lib/rubocop/result_cache.rb +2 -2
  35. data/lib/rubocop/runner.rb +3 -3
  36. data/lib/rubocop/target_finder.rb +2 -6
  37. data/lib/rubocop/version.rb +1 -1
  38. metadata +6 -4
@@ -4,7 +4,7 @@
4
4
  module RuboCop
5
5
  # This module holds the RuboCop version information.
6
6
  module Version
7
- STRING = '0.38.0'.freeze
7
+ STRING = '0.39.0'.freeze
8
8
 
9
9
  MSG = '%s (using Parser %s, running on %s %s %s)'.freeze
10
10
 
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.38.0
4
+ version: 0.39.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: 2016-03-09 00:00:00.000000000 Z
13
+ date: 2016-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rainbow
@@ -38,7 +38,7 @@ dependencies:
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 2.3.0.6
41
+ version: 2.3.0.7
42
42
  - - "<"
43
43
  - !ruby/object:Gem::Version
44
44
  version: '3.0'
@@ -48,7 +48,7 @@ dependencies:
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
- version: 2.3.0.6
51
+ version: 2.3.0.7
52
52
  - - "<"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
@@ -143,6 +143,7 @@ files:
143
143
  - lib/rubocop/comment_config.rb
144
144
  - lib/rubocop/config.rb
145
145
  - lib/rubocop/config_loader.rb
146
+ - lib/rubocop/config_loader_resolver.rb
146
147
  - lib/rubocop/config_store.rb
147
148
  - lib/rubocop/cop/autocorrect_logic.rb
148
149
  - lib/rubocop/cop/commissioner.rb
@@ -354,6 +355,7 @@ files:
354
355
  - lib/rubocop/cop/style/identical_conditional_branches.rb
355
356
  - lib/rubocop/cop/style/if_inside_else.rb
356
357
  - lib/rubocop/cop/style/if_unless_modifier.rb
358
+ - lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb
357
359
  - lib/rubocop/cop/style/if_with_semicolon.rb
358
360
  - lib/rubocop/cop/style/indent_array.rb
359
361
  - lib/rubocop/cop/style/indent_assignment.rb