rubocop 0.57.2 → 0.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -9
- data/bin/setup +7 -0
- data/config/default.yml +18 -2
- data/config/disabled.yml +4 -0
- data/lib/rubocop.rb +1 -0
- data/lib/rubocop/ast/node.rb +5 -0
- data/lib/rubocop/ast/node/str_node.rb +2 -0
- data/lib/rubocop/cli.rb +4 -7
- data/lib/rubocop/config.rb +4 -4
- data/lib/rubocop/config_loader.rb +4 -8
- data/lib/rubocop/cop/corrector.rb +25 -0
- data/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +3 -7
- data/lib/rubocop/cop/layout/end_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/indentation_width.rb +9 -1
- data/lib/rubocop/cop/layout/leading_blank_lines.rb +1 -1
- data/lib/rubocop/cop/lint/ineffective_access_modifier.rb +28 -51
- data/lib/rubocop/cop/lint/redundant_with_object.rb +1 -1
- data/lib/rubocop/cop/lint/shadowed_argument.rb +7 -3
- data/lib/rubocop/cop/lint/unneeded_splat_expansion.rb +1 -1
- data/lib/rubocop/cop/lint/useless_access_modifier.rb +17 -4
- data/lib/rubocop/cop/metrics/line_length.rb +28 -6
- data/lib/rubocop/cop/mixin/check_assignment.rb +0 -2
- data/lib/rubocop/cop/mixin/statement_modifier.rb +6 -1
- data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +79 -4
- data/lib/rubocop/cop/performance/inefficient_hash_search.rb +9 -5
- data/lib/rubocop/cop/performance/range_include.rb +9 -3
- data/lib/rubocop/cop/performance/sample.rb +6 -4
- data/lib/rubocop/cop/rails/bulk_change_table.rb +11 -7
- data/lib/rubocop/cop/rails/create_table_with_timestamps.rb +3 -1
- data/lib/rubocop/cop/registry.rb +11 -2
- data/lib/rubocop/cop/style/encoding.rb +5 -0
- data/lib/rubocop/cop/style/end_block.rb +8 -0
- data/lib/rubocop/cop/style/if_unless_modifier.rb +2 -1
- data/lib/rubocop/cop/style/ip_addresses.rb +76 -0
- data/lib/rubocop/cop/style/multiple_comparison.rb +16 -2
- data/lib/rubocop/cop/style/symbol_proc.rb +4 -2
- data/lib/rubocop/cop/style/unneeded_condition.rb +19 -2
- data/lib/rubocop/formatter/disabled_config_formatter.rb +3 -3
- data/lib/rubocop/options.rb +20 -12
- data/lib/rubocop/processed_source.rb +2 -5
- data/lib/rubocop/rspec/cop_helper.rb +0 -4
- data/lib/rubocop/rspec/shared_contexts.rb +0 -4
- data/lib/rubocop/rspec/shared_examples.rb +0 -23
- data/lib/rubocop/version.rb +1 -1
- metadata +7 -11
data/lib/rubocop/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module RuboCop
|
4
4
|
# This module holds the RuboCop version information.
|
5
5
|
module Version
|
6
|
-
STRING = '0.
|
6
|
+
STRING = '0.58.0'.freeze
|
7
7
|
|
8
8
|
MSG = '%<version>s (using Parser %<parser_version>s, running on ' \
|
9
9
|
'%<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'.freeze
|
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.58.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-07-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jaro_winkler
|
@@ -141,9 +141,6 @@ dependencies:
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 1.6.9
|
146
|
-
- - "<"
|
147
144
|
- !ruby/object:Gem::Version
|
148
145
|
version: '2.0'
|
149
146
|
type: :development
|
@@ -151,9 +148,6 @@ dependencies:
|
|
151
148
|
version_requirements: !ruby/object:Gem::Requirement
|
152
149
|
requirements:
|
153
150
|
- - ">="
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: 1.6.9
|
156
|
-
- - "<"
|
157
151
|
- !ruby/object:Gem::Version
|
158
152
|
version: '2.0'
|
159
153
|
description: |2
|
@@ -172,6 +166,7 @@ files:
|
|
172
166
|
- assets/logo.png
|
173
167
|
- assets/output.html.erb
|
174
168
|
- bin/console
|
169
|
+
- bin/setup
|
175
170
|
- config/default.yml
|
176
171
|
- config/disabled.yml
|
177
172
|
- config/enabled.yml
|
@@ -636,6 +631,7 @@ files:
|
|
636
631
|
- lib/rubocop/cop/style/infinite_loop.rb
|
637
632
|
- lib/rubocop/cop/style/inline_comment.rb
|
638
633
|
- lib/rubocop/cop/style/inverse_methods.rb
|
634
|
+
- lib/rubocop/cop/style/ip_addresses.rb
|
639
635
|
- lib/rubocop/cop/style/lambda.rb
|
640
636
|
- lib/rubocop/cop/style/lambda_call.rb
|
641
637
|
- lib/rubocop/cop/style/line_end_concatenation.rb
|
@@ -792,10 +788,10 @@ homepage: https://github.com/rubocop-hq/rubocop
|
|
792
788
|
licenses:
|
793
789
|
- MIT
|
794
790
|
metadata:
|
795
|
-
homepage_uri:
|
791
|
+
homepage_uri: http://www.rubocop.org/
|
796
792
|
changelog_uri: https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md
|
797
793
|
source_code_uri: https://github.com/rubocop-hq/rubocop/
|
798
|
-
documentation_uri:
|
794
|
+
documentation_uri: http://docs.rubocop.org/
|
799
795
|
bug_tracker_uri: https://github.com/rubocop-hq/rubocop/issues
|
800
796
|
post_install_message:
|
801
797
|
rdoc_options: []
|
@@ -805,7 +801,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
805
801
|
requirements:
|
806
802
|
- - ">="
|
807
803
|
- !ruby/object:Gem::Version
|
808
|
-
version: 2.
|
804
|
+
version: 2.2.0
|
809
805
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
810
806
|
requirements:
|
811
807
|
- - ">="
|