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: 35968261ce332fb768bb4718428cae2dbc1ac092
4
- data.tar.gz: 4ca8c381e68d044cc215c7a282c0cf638d5b7549
3
+ metadata.gz: a16f9ac38af8dac62fb417a4a3dd09ed10e56f33
4
+ data.tar.gz: 06c53108efb983ee32ca189a0e9838b0a177bf49
5
5
  SHA512:
6
- metadata.gz: 026eb4b4c81ba0a753f5f804dd276f85f98e6d5b2c5ddc39c7979cfcecc55ac4470fae3e5d2c9bd8a78411743b64f8c07b71cb1999256337b488254bafaa779d
7
- data.tar.gz: 45aa1649bae847377374ad44634bde37cee9ad3f4724359238cff14de0f634de29f42e783d3b45347838ca5a29fdd6828fc4a953e00408a447892f89609cff93
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 visit_possible_parent(node)
15
- if has_nested_properties?(node)
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
- alias_method :visit_mixin, :visit_possible_parent
23
- alias_method :visit_prop, :visit_possible_parent
24
-
25
- private
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
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module SCSSLint
3
- VERSION = '0.26.1'
3
+ VERSION = '0.26.2'
4
4
  end
@@ -182,7 +182,21 @@ describe SCSSLint::Linter::TrailingSemicolon do
182
182
  it { should_not report_lint }
183
183
  end
184
184
 
185
- context 'when @extend ends with a semicolon' do
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 @extend ends with a semicolon' do
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.1
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-28 00:00:00.000000000 Z
12
+ date: 2014-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow