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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c93dcb31a47e58c1ff171d798789c1bfdc202cf9d0f950c6eb35c0942eeaa8ca
4
- data.tar.gz: 3bf2d9f13f3bc7e39f651626f1c4dcb22b628d45e5a330e146a14d2c3ec9e138
3
+ metadata.gz: 8c05d5ae29ef48e240815439ce845d046cc744174e1a8fab4af7750f945f152f
4
+ data.tar.gz: a7089f30cbc770df73833be2173b44fe8dbe579647c2e07b9243b76a49cca67b
5
5
  SHA512:
6
- metadata.gz: e685e7c01d060ae7d1235ebb8d3164e0eac81a72ec0e4cb63f214aca7acde911ad16cc79c5fcbd0f5994d796a6ce8be13f62a43aba92e4c8c1e9d6126dc172e0
7
- data.tar.gz: 0b789ecf9210c095ab2c5abb128583e3fd7717aede849a45b0cf5ffc5419fc59d7b62a6ad4fc79495841fce369581fb67ad657a04bc60cdf666e105e3ad0259d
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.1
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.1'` | Gem version string |
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.1 |
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenvoxLint
4
- VERSION = '1.3.1'
4
+ VERSION = '1.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvox-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerald Sheets