haml_lint 0.41.0 → 0.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/haml_lint/adapter/haml_4.rb +2 -0
- data/lib/haml_lint/adapter.rb +1 -1
- data/lib/haml_lint/linter/rubocop.rb +2 -1
- data/lib/haml_lint/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba176a70407bd7ef377d16813fba194a6dc56875da03952116f09250362608cc
|
4
|
+
data.tar.gz: 3cacf61ff442811b53be9c457519b435cda94e6dfc09bd0831e8bc4a8cc535ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 370beb82cc7d8391944be45c3490aaebef0da77f9eadb621d118a86800d54560e358309eba32f3ebd63ed7b5bcc5e5e069fa636b0d08c6ffc3121603496c6116
|
7
|
+
data.tar.gz: 678c79722a1baae72336cf3b7d7013ae155a61c3b4389ddc2885aadd566f72b54ce692814f9e4da35b65688bdf34d899fe8acf1c05215a6e482aa8071c96e5a6
|
data/lib/haml_lint/adapter.rb
CHANGED
@@ -21,7 +21,7 @@ module HamlLint
|
|
21
21
|
case version
|
22
22
|
when '~> 4.0' then HamlLint::Adapter::Haml4
|
23
23
|
when '~> 5.0', '~> 5.1', '~> 5.2' then HamlLint::Adapter::Haml5
|
24
|
-
when '~> 6.0', '~> 6.0.a' then HamlLint::Adapter::Haml6
|
24
|
+
when '~> 6.0', '~> 6.0.a', '~> 6.1' then HamlLint::Adapter::Haml6
|
25
25
|
else fail HamlLint::Exceptions::UnknownHamlVersion, "Cannot handle Haml version: #{version}"
|
26
26
|
end
|
27
27
|
end
|
@@ -100,8 +100,9 @@ module HamlLint
|
|
100
100
|
#
|
101
101
|
# @return [Array<String>]
|
102
102
|
def rubocop_flags
|
103
|
+
config_file = ENV['HAML_LINT_RUBOCOP_CONF'] || config['config_file']
|
103
104
|
flags = %w[--format HamlLint::OffenseCollector]
|
104
|
-
flags += ['--config',
|
105
|
+
flags += ['--config', config_file] if config_file
|
105
106
|
flags += ['--stdin']
|
106
107
|
flags
|
107
108
|
end
|
data/lib/haml_lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.43.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane da Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '6.
|
22
|
+
version: '6.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '6.
|
32
|
+
version: '6.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: parallel
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|