haml_lint 0.61.0 → 0.61.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: 62ac7e2f95151a5906ccd99c47f5d948db8502aedf5423fa421666e90922d79e
4
- data.tar.gz: 39f4f0952d37d191662215f919a1ee62bf38a4a9f93b4b5ad87545f334a97f6b
3
+ metadata.gz: 61b19bf998b26f91fc8ea0578a3e189b8edb1d3c31a942c873e1e895747bcd82
4
+ data.tar.gz: 66b19273123ec6618faade749c390ded3e5ccdb608e2f64b43a4def9f575a298
5
5
  SHA512:
6
- metadata.gz: 21bdfc9e4ac041b44dbf6ca6d1ceca373f54d210c5c6035bc9e47ff0be3c772a4fcbfcbd4b3fe0131facb3e42a816d9a8d7dbae824bf66198a3453daff8c865a
7
- data.tar.gz: 2a459e90165257a12086205ff8bad69dd39845873e7d95888788f56b538be330f69bca13deb3c993ae77d05e7f8c43586db3be737a9d3af178adcc2919a6f9fd
6
+ metadata.gz: c279dc5f30fa736cfac959aedfd8dec1bf7e5e25b1a0508989ce1276afa5d8b4ddd802f9a139ab48b773a1a0e4d9f9bd91e599cf63700e3eea383cbfa7407bc4
7
+ data.tar.gz: 88a18703c06bcc0b95e0072d3ca0e3970302d7807bba29bcb05d2ad8f43dcbf184d76015dc13924d41e7acfcd36762cd6c0eefe3e46d58eae4d26dd8ef2cae2a
@@ -14,9 +14,12 @@ module HamlLint
14
14
  def visit_root(root)
15
15
  return unless enabled?(root)
16
16
 
17
- first_children = root.children.first
18
- return if first_children.is_a?(HamlLint::Tree::HamlCommentNode) &&
19
- first_children.is_strict_locals?
17
+ first_child = root.children.first
18
+ return if first_child.is_a?(HamlLint::Tree::HamlCommentNode) &&
19
+ first_child.is_strict_locals?
20
+
21
+ # Check whether this linter is disabled by a comment
22
+ return if first_child.disabled?(self)
20
23
 
21
24
  record_lint(DummyNode.new(1), failure_message)
22
25
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module HamlLint
5
- VERSION = '0.61.0'
5
+ VERSION = '0.61.1'
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.61.0
4
+ version: 0.61.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-24 00:00:00.000000000 Z
10
+ date: 2025-03-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: haml