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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rubocop/socketry/layout/consistent_blank_line_indentation.rb +2 -2
- data/lib/rubocop/socketry/version.rb +1 -1
- data/readme.md +4 -4
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a21ad68f85134a6078dd60a1c413e3bf0b7ef289ff5a0bfe9f248f441c9c4311
|
|
4
|
+
data.tar.gz: 146288237609f6577df58e013d0803737e25fa2815c8706740c004bc4c0099c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
#
|
|
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
|
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
metadata.gz.sig
CHANGED
|
Binary file
|