rubocop 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -3
  3. data/config/default.yml +31 -5
  4. data/exe/rubocop +1 -1
  5. data/lib/rubocop.rb +4 -0
  6. data/lib/rubocop/cop/layout/else_alignment.rb +15 -2
  7. data/lib/rubocop/cop/layout/end_alignment.rb +3 -3
  8. data/lib/rubocop/cop/layout/hash_alignment.rb +4 -4
  9. data/lib/rubocop/cop/layout/space_around_block_parameters.rb +24 -18
  10. data/lib/rubocop/cop/layout/space_inside_parens.rb +35 -13
  11. data/lib/rubocop/cop/lint/else_layout.rb +29 -3
  12. data/lib/rubocop/cop/lint/empty_block.rb +15 -2
  13. data/lib/rubocop/cop/lint/loop.rb +0 -4
  14. data/lib/rubocop/cop/lint/nested_percent_literal.rb +14 -0
  15. data/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb +58 -0
  16. data/lib/rubocop/cop/lint/useless_setter_call.rb +6 -1
  17. data/lib/rubocop/cop/mixin/configurable_numbering.rb +3 -3
  18. data/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +11 -1
  19. data/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +11 -5
  20. data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +67 -18
  21. data/lib/rubocop/cop/naming/variable_number.rb +82 -8
  22. data/lib/rubocop/cop/style/bisected_attr_accessor.rb +0 -4
  23. data/lib/rubocop/cop/style/case_like_if.rb +0 -4
  24. data/lib/rubocop/cop/style/collection_compact.rb +85 -0
  25. data/lib/rubocop/cop/style/double_negation.rb +6 -1
  26. data/lib/rubocop/cop/style/hash_syntax.rb +3 -3
  27. data/lib/rubocop/cop/style/keyword_parameters_order.rb +12 -0
  28. data/lib/rubocop/cop/style/mixin_grouping.rb +0 -4
  29. data/lib/rubocop/cop/style/negated_if_else_condition.rb +99 -0
  30. data/lib/rubocop/cop/style/raise_args.rb +21 -6
  31. data/lib/rubocop/cop/style/redundant_regexp_escape.rb +1 -1
  32. data/lib/rubocop/cop/util.rb +4 -0
  33. data/lib/rubocop/ext/regexp_node.rb +10 -5
  34. data/lib/rubocop/ext/regexp_parser.rb +9 -2
  35. data/lib/rubocop/formatter/formatter_set.rb +1 -0
  36. data/lib/rubocop/formatter/git_hub_actions_formatter.rb +47 -0
  37. data/lib/rubocop/options.rb +2 -0
  38. data/lib/rubocop/version.rb +1 -1
  39. metadata +7 -3
@@ -145,6 +145,7 @@ module RuboCop
145
145
  end
146
146
  end
147
147
 
148
+ option(opts, '--display-time')
148
149
  option(opts, '--display-only-failed')
149
150
  end
150
151
 
@@ -469,6 +470,7 @@ module RuboCop
469
470
  'if no format is specified.'],
470
471
  fail_level: ['Minimum severity (A/R/C/W/E/F) for exit',
471
472
  'with error code.'],
473
+ display_time: 'Display elapsed time in seconds.',
472
474
  display_only_failed: ['Only output offense messages. Omit passing',
473
475
  'cops. Only valid for --format junit.'],
474
476
  display_only_fail_level_offenses:
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
- STRING = '1.1.0'
6
+ STRING = '1.2.0'
7
7
 
8
8
  MSG = '%<version>s (using Parser %<parser_version>s, '\
9
9
  'rubocop-ast %<rubocop_ast_version>s, ' \
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: 1.1.0
4
+ version: 1.2.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: 2020-10-29 00:00:00.000000000 Z
13
+ date: 2020-11-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parallel
@@ -386,6 +386,7 @@ files:
386
386
  - lib/rubocop/cop/lint/nested_method_definition.rb
387
387
  - lib/rubocop/cop/lint/nested_percent_literal.rb
388
388
  - lib/rubocop/cop/lint/next_without_accumulator.rb
389
+ - lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb
389
390
  - lib/rubocop/cop/lint/non_deterministic_require_order.rb
390
391
  - lib/rubocop/cop/lint/non_local_exit_from_iterator.rb
391
392
  - lib/rubocop/cop/lint/number_conversion.rb
@@ -569,6 +570,7 @@ files:
569
570
  - lib/rubocop/cop/style/class_methods.rb
570
571
  - lib/rubocop/cop/style/class_methods_definitions.rb
571
572
  - lib/rubocop/cop/style/class_vars.rb
573
+ - lib/rubocop/cop/style/collection_compact.rb
572
574
  - lib/rubocop/cop/style/collection_methods.rb
573
575
  - lib/rubocop/cop/style/colon_method_call.rb
574
576
  - lib/rubocop/cop/style/colon_method_definition.rb
@@ -653,6 +655,7 @@ files:
653
655
  - lib/rubocop/cop/style/multiple_comparison.rb
654
656
  - lib/rubocop/cop/style/mutable_constant.rb
655
657
  - lib/rubocop/cop/style/negated_if.rb
658
+ - lib/rubocop/cop/style/negated_if_else_condition.rb
656
659
  - lib/rubocop/cop/style/negated_unless.rb
657
660
  - lib/rubocop/cop/style/negated_while.rb
658
661
  - lib/rubocop/cop/style/nested_modifier.rb
@@ -775,6 +778,7 @@ files:
775
778
  - lib/rubocop/formatter/file_list_formatter.rb
776
779
  - lib/rubocop/formatter/formatter_set.rb
777
780
  - lib/rubocop/formatter/fuubar_style_formatter.rb
781
+ - lib/rubocop/formatter/git_hub_actions_formatter.rb
778
782
  - lib/rubocop/formatter/html_formatter.rb
779
783
  - lib/rubocop/formatter/json_formatter.rb
780
784
  - lib/rubocop/formatter/junit_formatter.rb
@@ -813,7 +817,7 @@ metadata:
813
817
  homepage_uri: https://rubocop.org/
814
818
  changelog_uri: https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md
815
819
  source_code_uri: https://github.com/rubocop-hq/rubocop/
816
- documentation_uri: https://docs.rubocop.org/rubocop/1.1/
820
+ documentation_uri: https://docs.rubocop.org/rubocop/1.2/
817
821
  bug_tracker_uri: https://github.com/rubocop-hq/rubocop/issues
818
822
  post_install_message:
819
823
  rdoc_options: []