openvox-lint 1.3.1 → 1.3.2
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
- data/CHANGELOG.md +5 -0
- data/DOCUMENTATION.md +2 -2
- data/README.md +1 -1
- data/lib/openvox-lint/check_plugin.rb +15 -0
- data/lib/openvox-lint/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c05d5ae29ef48e240815439ce845d046cc744174e1a8fab4af7750f945f152f
|
|
4
|
+
data.tar.gz: a7089f30cbc770df73833be2173b44fe8dbe579647c2e07b9243b76a49cca67b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d73364d4a91db8da06e6cef69f9f4eb10def5ff8ced91531c79d5f3d95f129368f81f4de1361d05d1418d35dd5d1e7edb9fecbac93cffabe3c446d5bb187f29
|
|
7
|
+
data.tar.gz: 6aab6a244ad2e8448a9eaf26b75bff0305edb0e91592b0b115310e38e1e5833c164ef5a20935cadbddb057c80b3f4d2918b61849b2c1ba73d4b40e7d33d8bc27
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to openvox-lint will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.3.2] - 2026-05-24
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- Strengthened resource detection logic in `compute_resource_indexes` to reliably exclude `class`/`define`/`node` bodies. This prevents multiple checks (especially `trailing_comma`) from incorrectly treating statements inside classes as resource attributes.
|
|
9
|
+
|
|
5
10
|
## [1.3.1] - 2026-05-23
|
|
6
11
|
|
|
7
12
|
### Fixed
|
data/DOCUMENTATION.md
CHANGED
|
@@ -10,7 +10,7 @@ reported in multiple output formats suitable for humans, CI systems, and IDEs.
|
|
|
10
10
|
This document covers the architecture, every public API, every built-in check,
|
|
11
11
|
the lexer token types, the plugin system, and integration guidance.
|
|
12
12
|
|
|
13
|
-
**Version:** 1.3.
|
|
13
|
+
**Version:** 1.3.2
|
|
14
14
|
**Checks:** 37 built-in (with real --fix support for 5+ checks)
|
|
15
15
|
**License:** Apache 2.0
|
|
16
16
|
**Compatibility:** OpenVox 8.x, Puppet 8.x, Puppet 7.x (with deprecation warnings)
|
|
@@ -94,7 +94,7 @@ The top-level namespace for all openvox-lint classes.
|
|
|
94
94
|
|
|
95
95
|
| Constant | Value | Description |
|
|
96
96
|
|----------|-------|-------------|
|
|
97
|
-
| `VERSION` | `'1.3.
|
|
97
|
+
| `VERSION` | `'1.3.2'` | Gem version string |
|
|
98
98
|
|
|
99
99
|
#### Class Methods
|
|
100
100
|
|
data/README.md
CHANGED
|
@@ -638,7 +638,7 @@ openvox-lint/
|
|
|
638
638
|
|
|
639
639
|
## Comparison with puppet-lint
|
|
640
640
|
|
|
641
|
-
| Feature | puppet-lint 5.x | openvox-lint 1.3.
|
|
641
|
+
| Feature | puppet-lint 5.x | openvox-lint 1.3.2 |
|
|
642
642
|
|---------|-----------------|------------------|
|
|
643
643
|
| Ruby requirement | ≥ 3.1 | ≥ 2.5 (RHEL 8, macOS, all modern platforms) |
|
|
644
644
|
| Runtime dependencies | None | None |
|
|
@@ -92,6 +92,21 @@ module OpenvoxLint
|
|
|
92
92
|
results = []; i = 0; sem = semantic_tokens
|
|
93
93
|
while i < sem.length
|
|
94
94
|
if sem[i].type == :NAME && i + 1 < sem.length && sem[i + 1].type == :LBRACE
|
|
95
|
+
# Skip NAME { that belong to class/define/node bodies rather than
|
|
96
|
+
# actual resources. This prevents inner statements (including other
|
|
97
|
+
# resources) from being treated as parameters of the class itself.
|
|
98
|
+
k = i - 1
|
|
99
|
+
while k >= 0
|
|
100
|
+
t = sem[k]
|
|
101
|
+
break if t.type == :CLASS || t.type == :DEFINE || t.type == :NODE
|
|
102
|
+
break unless t.formatting?
|
|
103
|
+
k -= 1
|
|
104
|
+
end
|
|
105
|
+
if k >= 0 && [:CLASS, :DEFINE, :NODE].include?(sem[k].type)
|
|
106
|
+
i += 1
|
|
107
|
+
next
|
|
108
|
+
end
|
|
109
|
+
|
|
95
110
|
rtype = sem[i]; brace = i + 1; depth = 1; j = brace + 1; params = []
|
|
96
111
|
while j < sem.length && depth > 0
|
|
97
112
|
case sem[j].type
|
data/lib/openvox-lint/version.rb
CHANGED