rubocop-socketry 0.11.0 → 0.11.1

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: 6afce664365a0b7fa9a50a48b6aebc9f05b1de2755f8bc133a85b051b0819d79
4
- data.tar.gz: fb88cb2a6b157b82269bc2afa51cbe08d9327b8d885b4b7baab08180bf2dcd62
3
+ metadata.gz: a21ad68f85134a6078dd60a1c413e3bf0b7ef289ff5a0bfe9f248f441c9c4311
4
+ data.tar.gz: 146288237609f6577df58e013d0803737e25fa2815c8706740c004bc4c0099c6
5
5
  SHA512:
6
- metadata.gz: a433da1fbc1394419fc20e73c4c3a883b5a18ca58b7e0ff46e070a9f7aee7139e6dee1edda29053c1d2015650714db1aaa3152ae479716ef6269d880191e4dc0
7
- data.tar.gz: 3aa6a42823410aae0c2b7889915c0857c54efbcb3f83e8a7f07a83cf98014a862ec479f1ba0db7aeb1017bb3b4aabd3197be7a194d6f7a4473723eee5f265300
6
+ metadata.gz: cbfb896891caa89fc6cbdb8aa470520f7412608fad2f6b785d3d5adbb9907787e9bb6f9489dd34e256b067ec917ae054c4e3d6b56c47462a79a0baea49fb3fd3
7
+ data.tar.gz: 38a101cefb2e29216db89282579c227878b4630703275d8a038dadee2cb11bd95385b828b9f11a29012eb2c5ce396c17ad95a5b289d42b6bf4c7d8faa9ba56e2
checksums.yaml.gz.sig CHANGED
Binary file
@@ -120,8 +120,8 @@ module RuboCop
120
120
  end
121
121
  end
122
122
  when :if
123
- # We don't want to add deltas for elsif, because it's handled by the if node:
124
- if node.keyword == "if" || node.keyword == "unless"
123
+ # Modifier conditionals don't introduce indentation, and elsif is handled by the if node:
124
+ if !node.modifier_form? && (node.keyword == "if" || node.keyword == "unless")
125
125
  if location = node.location
126
126
  deltas[location.line] += 1
127
127
  deltas[location.last_line] -= 1
@@ -5,6 +5,6 @@
5
5
 
6
6
  module RuboCop
7
7
  module Socketry
8
- VERSION = "0.11.0"
8
+ VERSION = "0.11.1"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -27,6 +27,10 @@ Layout/ConsistentBlankLineIndentation:
27
27
 
28
28
  Please see the [project releases](https://socketry.github.io/rubocop-socketry/releases/index) for all releases.
29
29
 
30
+ ### v0.11.1
31
+
32
+ - Fixed `Layout/ConsistentBlankLineIndentation` to ignore modifier conditionals when calculating indentation depth.
33
+
30
34
  ### v0.11.0
31
35
 
32
36
  - Fixed `Layout/ConsistentBlankLineIndentation` to preserve semantic indentation depth for same-line nested structures, avoiding negative indentation levels when later closing lines are processed.
@@ -69,10 +73,6 @@ Please see the [project releases](https://socketry.github.io/rubocop-socketry/re
69
73
 
70
74
  - Added `Layout/BlockDelimiterSpacing` cop to enforce consistent spacing before block delimiters.
71
75
 
72
- ### v0.1.0
73
-
74
- - Initial implementation of `Layout/ConsistentBlankLineIndentation`.
75
-
76
76
  ## Contributing
77
77
 
78
78
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.11.1
4
+
5
+ - Fixed `Layout/ConsistentBlankLineIndentation` to ignore modifier conditionals when calculating indentation depth.
6
+
3
7
  ## v0.11.0
4
8
 
5
9
  - Fixed `Layout/ConsistentBlankLineIndentation` to preserve semantic indentation depth for same-line nested structures, avoiding negative indentation levels when later closing lines are processed.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-socketry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file