rubocop 0.38.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rubocop might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/config/default.yml +13 -0
- data/config/enabled.yml +15 -3
- data/lib/rubocop.rb +2 -0
- data/lib/rubocop/ast_node/builder.rb +6 -0
- data/lib/rubocop/cli.rb +2 -2
- data/lib/rubocop/config.rb +13 -13
- data/lib/rubocop/config_loader.rb +5 -28
- data/lib/rubocop/config_loader_resolver.rb +42 -0
- data/lib/rubocop/cop/cop.rb +4 -5
- data/lib/rubocop/cop/lint/assignment_in_condition.rb +1 -1
- data/lib/rubocop/cop/lint/literal_in_interpolation.rb +9 -2
- data/lib/rubocop/cop/mixin/statement_modifier.rb +5 -4
- data/lib/rubocop/cop/performance/case_when_splat.rb +1 -1
- data/lib/rubocop/cop/performance/count.rb +20 -0
- data/lib/rubocop/cop/performance/detect.rb +12 -0
- data/lib/rubocop/cop/performance/redundant_merge.rb +10 -1
- data/lib/rubocop/cop/performance/times_map.rb +14 -0
- data/lib/rubocop/cop/style/case_indentation.rb +14 -7
- data/lib/rubocop/cop/style/conditional_assignment.rb +221 -20
- data/lib/rubocop/cop/style/file_name.rb +31 -17
- data/lib/rubocop/cop/style/if_unless_modifier.rb +8 -0
- data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +45 -0
- data/lib/rubocop/cop/style/multiline_method_call_indentation.rb +3 -2
- data/lib/rubocop/cop/style/next.rb +6 -1
- data/lib/rubocop/cop/style/one_line_conditional.rb +37 -8
- data/lib/rubocop/cop/style/redundant_parentheses.rb +9 -0
- data/lib/rubocop/cop/style/redundant_self.rb +1 -1
- data/lib/rubocop/cop/style/space_around_keyword.rb +10 -1
- data/lib/rubocop/cop/style/special_global_vars.rb +23 -14
- data/lib/rubocop/cop/style/zero_length_predicate.rb +25 -0
- data/lib/rubocop/formatter/html_formatter.rb +3 -3
- data/lib/rubocop/result_cache.rb +2 -2
- data/lib/rubocop/runner.rb +3 -3
- data/lib/rubocop/target_finder.rb +2 -6
- data/lib/rubocop/version.rb +1 -1
- metadata +6 -4
data/lib/rubocop/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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
|