haml_lint 0.65.1 → 0.66.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72b5b45a5cd4460ed96b560ba9fdd7325d12a730fab2318cf7d7183da48f27f5
|
4
|
+
data.tar.gz: 97029f3c1b3204a49760a42063992dd22b363944f388366e15483acb5059ae4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aadac9bba20b5d32a27f1085e25886fd5ef5b3085bc82338e7fc1afb065dea65099e0823cc8570e97e052d71e2fe7fc7dfec87bd12661e5de975507ab06b2f8c
|
7
|
+
data.tar.gz: 2584cbed2219fdd0484369d6585b4df2a667cebbeb965612c0a7564194b399c825a262b15b8590f6ba5c31c8d83fe44f911e6d5d430a4679c8ddb5894fee824f
|
@@ -10,7 +10,7 @@ module HamlLint
|
|
10
10
|
# @param [HamlLint::Tree::RootNode] the root of a syntax tree
|
11
11
|
# @return [true, false] whether the linter is enabled for the tree
|
12
12
|
def visit_root(node)
|
13
|
-
@enabled = matcher.match(File.basename(node.file))
|
13
|
+
@enabled = matcher.match?(File.basename(node.file))
|
14
14
|
end
|
15
15
|
|
16
16
|
# Checks for instance variables in script nodes when the linter is enabled.
|
@@ -26,7 +26,7 @@ module HamlLint
|
|
26
26
|
# Plain text nodes are allowed to consist of a single pipe
|
27
27
|
return if line.strip == '|'
|
28
28
|
|
29
|
-
record_lint(node, MESSAGE) if line.match(MULTILINE_PIPE_REGEX)
|
29
|
+
record_lint(node, MESSAGE) if line.match?(MULTILINE_PIPE_REGEX)
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|
@@ -39,7 +39,7 @@ module HamlLint
|
|
39
39
|
|
40
40
|
def check(node)
|
41
41
|
line = line_text_for_node(node)
|
42
|
-
record_lint(node, MESSAGE) if line.match(MULTILINE_PIPE_REGEX)
|
42
|
+
record_lint(node, MESSAGE) if line.match?(MULTILINE_PIPE_REGEX)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -35,7 +35,7 @@ module HamlLint
|
|
35
35
|
# @api private
|
36
36
|
# @return [true, false]
|
37
37
|
def enabled?(root)
|
38
|
-
return false unless matcher.match(File.basename(root.file))
|
38
|
+
return false unless matcher.match?(File.basename(root.file))
|
39
39
|
|
40
40
|
# This linter can also be disabled by a comment at the top of the file
|
41
41
|
first_child = root.children.first
|
data/lib/haml_lint/version.rb
CHANGED
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.
|
4
|
+
version: 0.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane da Silva
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-08-03 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: haml
|