scss-lint 0.26.1 → 0.26.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a16f9ac38af8dac62fb417a4a3dd09ed10e56f33
|
4
|
+
data.tar.gz: 06c53108efb983ee32ca189a0e9838b0a177bf49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87ed567488756c8b381b5a57c0d1ffced33bfe7711689a8a0844ccd34c884bb7655d8756096b278655685f31a6becd033654279837220b01ee282fb0a7a8a80f
|
7
|
+
data.tar.gz: 59bdaba7321a09c292d8e767cebd8a2813ddb4127f60518be40db3bd3c5c650643e59a3eda6d4c5d2ec7e915fcca9f8cf29c7911373c3211f53b9f8f0ed03ced
|
@@ -8,12 +8,22 @@ right
|
|
8
8
|
bottom
|
9
9
|
left
|
10
10
|
|
11
|
+
columns
|
12
|
+
column-gap
|
13
|
+
column-fill
|
14
|
+
column-rule
|
15
|
+
column-span
|
16
|
+
column-count
|
17
|
+
column-width
|
18
|
+
|
11
19
|
float
|
12
20
|
clear
|
13
21
|
|
22
|
+
transform
|
23
|
+
transition
|
24
|
+
|
14
25
|
visibility
|
15
26
|
opacity
|
16
|
-
transform
|
17
27
|
z-index
|
18
28
|
|
19
29
|
margin
|
@@ -94,6 +104,8 @@ text-indent
|
|
94
104
|
text-transform
|
95
105
|
text-decoration
|
96
106
|
text-rendering
|
107
|
+
text-shadow
|
108
|
+
text-overflow
|
97
109
|
|
98
110
|
line-height
|
99
111
|
word-spacing
|
@@ -105,6 +117,8 @@ font
|
|
105
117
|
font-family
|
106
118
|
font-size
|
107
119
|
font-weight
|
120
|
+
font-smoothing
|
121
|
+
font-style
|
108
122
|
|
109
123
|
content
|
110
124
|
quotes
|
@@ -11,25 +11,24 @@ module SCSSLint
|
|
11
11
|
check_semicolon(node)
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
if
|
14
|
+
def visit_prop(node)
|
15
|
+
if node.children.any? { |n| n.is_a?(Sass::Tree::PropNode) }
|
16
16
|
yield # Continue checking children
|
17
17
|
else
|
18
18
|
check_semicolon(node)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
def has_nested_properties?(node)
|
28
|
-
node.children.any? do |n|
|
29
|
-
n.is_a?(Sass::Tree::PropNode) || n.is_a?(Sass::Tree::RuleNode)
|
22
|
+
def visit_mixin(node)
|
23
|
+
if node.children.any?
|
24
|
+
yield # Continue checking children
|
25
|
+
else
|
26
|
+
check_semicolon(node)
|
30
27
|
end
|
31
28
|
end
|
32
29
|
|
30
|
+
private
|
31
|
+
|
33
32
|
def check_semicolon(node)
|
34
33
|
if has_space_before_semicolon?(node)
|
35
34
|
line = node.source_range.start_pos.line
|
data/lib/scss_lint/version.rb
CHANGED
@@ -182,7 +182,21 @@ describe SCSSLint::Linter::TrailingSemicolon do
|
|
182
182
|
it { should_not report_lint }
|
183
183
|
end
|
184
184
|
|
185
|
-
context 'when @
|
185
|
+
context 'when @include takes a block with an if-node' do
|
186
|
+
let(:css) { <<-CSS }
|
187
|
+
.foo {
|
188
|
+
@include bar {
|
189
|
+
@if $var {
|
190
|
+
border: 0;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
CSS
|
195
|
+
|
196
|
+
it { should_not report_lint }
|
197
|
+
end
|
198
|
+
|
199
|
+
context 'when @include ends with a semicolon' do
|
186
200
|
let(:css) { <<-CSS }
|
187
201
|
.foo {
|
188
202
|
@include bar;
|
@@ -202,7 +216,7 @@ describe SCSSLint::Linter::TrailingSemicolon do
|
|
202
216
|
it { should report_lint line: 2 }
|
203
217
|
end
|
204
218
|
|
205
|
-
context 'when
|
219
|
+
context 'when variable declaration ends with a semicolon' do
|
206
220
|
let(:css) { <<-CSS }
|
207
221
|
.foo {
|
208
222
|
$bar: 1;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scss-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Causes Engineering
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rainbow
|