rubocop-elegant 0.5.1 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 400170a3fda22ccd3c629d58a47a9c142da2ebd38bd34c292fc702fc47e3fc51
4
- data.tar.gz: c82766e8b09239583a125b2d769e01a356330a83210e113dfdf43031a81a59ec
3
+ metadata.gz: 60367f0f72f86e055af5d89d7120871578083d2812c4996e6fa027fb6d3b6cae
4
+ data.tar.gz: 72077f0159044736a87ebb84c818c72d8280182d8fc6fcbf42f09d776d9c0775
5
5
  SHA512:
6
- metadata.gz: 1c2d09a8e4d0ffa82a2371396310bdd2d1cb0fa1308b87333f13edb30d9b3551a769309fe8e7a311806c221319c89b4be3160261115e92d9935ace180b878974
7
- data.tar.gz: 7200ec078d268fe5baadd7ba8627f3b20c705273444cdd7ad81b73d63009ffa93f9ae91be1fc267ae46b17b551519c5c93d4adfbabbfa228e7a0b78945dfaa18
6
+ metadata.gz: 6f906093f750d1a9c5db831efb8ddc769d00a6449b62432a6ca645c6dc256f62944b9af2d45688f028cc5b242001ff9fa634a261ecbec928399233f2ba25b93e
7
+ data.tar.gz: 6f1e7b0f76573edea8582d3607c4e5deaae6b8944bfa133ed58d121cf9a2d4afc38dc6eb26d87fb4a388ded4a1bb355c9d7e56da380448f70b33d7baa35ab9e5
data/config/default.yml CHANGED
@@ -50,7 +50,7 @@ Elegant/OneClassPerFile:
50
50
  Exclude:
51
51
  - '**/*Test.rb'
52
52
  - '**/test_*.rb'
53
- Elegant/IndentationLadder:
53
+ Elegant/MonotonicIndents:
54
54
  Description: 'Requires the indentation step to be exactly two spaces when a line indents to the right of the previous one'
55
55
  Enabled: true
56
56
  VersionAdded: '0.1.0'
@@ -3,7 +3,7 @@
3
3
  # SPDX-FileCopyrightText: Copyright (c) 2019-2026 Yegor Bugayenko
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
- # Enforces the "indentation ladder" rule: when a line is indented further
6
+ # Enforces the "monotonic indentation" rule: when a line is indented further
7
7
  # to the right than the previous non-empty line, the extra indentation
8
8
  # must be exactly two spaces. Larger jumps (or odd ones, such as a single
9
9
  # space or three spaces) break the visual rhythm of the code and make
@@ -11,7 +11,7 @@
11
11
  # de-indent by any amount, are not affected. Lines that belong to the
12
12
  # body of a heredoc are ignored, because their whitespace is part of the
13
13
  # literal value rather than program structure.
14
- class RuboCop::Cop::Elegant::IndentationLadder < RuboCop::Cop::Base
14
+ class RuboCop::Cop::Elegant::MonotonicIndents < RuboCop::Cop::Base
15
15
  MSG = 'Indentation step of %<step>d spaces is not allowed; use 2 spaces'
16
16
  public_constant :MSG
17
17
 
@@ -8,7 +8,7 @@ module RuboCop::Cop::Elegant; end
8
8
  require_relative 'elegant/class_in_module'
9
9
  require_relative 'elegant/good_method_name'
10
10
  require_relative 'elegant/good_variable_name'
11
- require_relative 'elegant/indentation_ladder'
11
+ require_relative 'elegant/monotonic_indents'
12
12
  require_relative 'elegant/no_class_in_module'
13
13
  require_relative 'elegant/no_comments'
14
14
  require_relative 'elegant/no_empty_lines_in_blocks'
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to?(:required_rubygems_version=)
10
10
  s.required_ruby_version = '>=2.2'
11
11
  s.name = 'rubocop-elegant'
12
- s.version = '0.5.1'
12
+ s.version = '0.6.0'
13
13
  s.license = 'MIT'
14
14
  s.summary = 'Set of custom RuboCop cops for elegant Ruby coding'
15
15
  s.description =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-elegant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
@@ -56,7 +56,7 @@ files:
56
56
  - lib/rubocop/cop/elegant/class_in_module.rb
57
57
  - lib/rubocop/cop/elegant/good_method_name.rb
58
58
  - lib/rubocop/cop/elegant/good_variable_name.rb
59
- - lib/rubocop/cop/elegant/indentation_ladder.rb
59
+ - lib/rubocop/cop/elegant/monotonic_indents.rb
60
60
  - lib/rubocop/cop/elegant/no_class_in_module.rb
61
61
  - lib/rubocop/cop/elegant/no_comments.rb
62
62
  - lib/rubocop/cop/elegant/no_empty_lines_in_blocks.rb