slim_lint_standard 0.0.3.3 → 0.0.3.4
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/lib/slim_lint/linter/redundant_div.rb +2 -2
- data/lib/slim_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: afbc4173dc8ea740433e3d87b6bd17763705cc9d12a4138d8c8cb0a55ea1b997
|
4
|
+
data.tar.gz: 6a48418c1320a2cc27967c40aec90db4103e75b39f44b2ae11f6df4b6b547bfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2267b4557bec4e0b72096b53b74fe677b7909376e227c2ea322af69e2444123db0476f33540758d0661725751796150a371b4ea57906fd4d1d97f32e541a8f8d
|
7
|
+
data.tar.gz: f19acd284f7031f1aa172ebd9337542a40d61152b9ef9ce71d012e2b72f0340c92b198b024d0987110f61d431e2e96a51506cd52e09d6c0173f6c83a93c26382
|
@@ -8,7 +8,7 @@ module SlimLint
|
|
8
8
|
|
9
9
|
SHORTCUT_ATTRS = %w[id class]
|
10
10
|
IMPLICIT_MESSAGE = "`div` is redundant when %s attribute shortcut is present"
|
11
|
-
EXPLICIT_MESSAGE = "explicit `div` is preferred over bare
|
11
|
+
EXPLICIT_MESSAGE = "explicit `div` is preferred over bare shorthand"
|
12
12
|
|
13
13
|
on [:html, :tag, capture(:tag, anything), capture(:attrs, [:html, :attrs]), anything] do |sexp|
|
14
14
|
case @config["style"]
|
@@ -21,7 +21,7 @@ module SlimLint
|
|
21
21
|
report_lint(sexp[2], IMPLICIT_MESSAGE % name)
|
22
22
|
when "explicit", :explicit
|
23
23
|
next unless captures[:tag] == "." || captures[:tag] == "#"
|
24
|
-
report_lint(sexp[2], EXPLICIT_MESSAGE
|
24
|
+
report_lint(sexp[2], EXPLICIT_MESSAGE)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/lib/slim_lint/version.rb
CHANGED