scss-lint 0.24.0 → 0.24.1
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: 6a3663e2870c45af5654c5fea5a7289ac4fb9632
|
4
|
+
data.tar.gz: 1167dbea3c255892fda1ccd621cb47b4b50f632f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 507b9deb0e2cbcde999f141ae35d9ebba74e80e045054334a0d448a94afadc3934b5963d88276cfee4be1f8ee98d3b1b4c0136f2ad1030b75554f9170a052c79
|
7
|
+
data.tar.gz: 67c939b682e3b4f05d260ebc771a8a0c68455c4766025badf8d69ccecb91ffddabe01ef1b68af2bb69434707ea21c41bf6465645a8475d43125bbf13ffe43657
|
data/bin/scss-lint
CHANGED
data/lib/scss_lint.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'scss_lint/constants'
|
2
2
|
require 'scss_lint/config'
|
3
|
-
require 'scss_lint/cli'
|
4
3
|
require 'scss_lint/engine'
|
5
4
|
require 'scss_lint/location'
|
6
5
|
require 'scss_lint/lint'
|
@@ -24,6 +23,6 @@ end
|
|
24
23
|
|
25
24
|
# Load all reporters
|
26
25
|
require 'scss_lint/reporter'
|
27
|
-
Dir[File.expand_path('scss_lint/reporter
|
26
|
+
Dir[File.expand_path('scss_lint/reporter/**/*.rb', File.dirname(__FILE__))].sort.each do |file|
|
28
27
|
require file
|
29
28
|
end
|
data/lib/scss_lint/cli.rb
CHANGED
@@ -186,7 +186,7 @@ module SCSSLint
|
|
186
186
|
# @param lints [Array<Lint>]
|
187
187
|
def report_lints(lints)
|
188
188
|
sorted_lints = lints.sort_by { |l| [l.filename, l.location] }
|
189
|
-
reporter = @options.fetch(:reporter, Reporter::DefaultReporter)
|
189
|
+
reporter = @options.fetch(:reporter, SCSSLint::Reporter::DefaultReporter)
|
190
190
|
.new(sorted_lints)
|
191
191
|
output = reporter.report_lints
|
192
192
|
print output if output
|
@@ -9,12 +9,10 @@ module SCSSLint
|
|
9
9
|
|
10
10
|
unless has_nested_props
|
11
11
|
if has_space_before_semicolon?(node)
|
12
|
-
line = node.source_range.
|
12
|
+
line = node.source_range.start_pos.line
|
13
13
|
add_lint line, 'Property declaration should be terminated by a semicolon'
|
14
14
|
elsif !ends_with_semicolon?(node)
|
15
|
-
|
16
|
-
# being on the next line
|
17
|
-
line = node.source_range.end_pos.line - 1
|
15
|
+
line = node.source_range.start_pos.line
|
18
16
|
add_lint line,
|
19
17
|
'Property declaration should not have a space before ' \
|
20
18
|
'the terminating semicolon'
|
data/lib/scss_lint/version.rb
CHANGED
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.24.
|
4
|
+
version: 0.24.1
|
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-05-
|
12
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rainbow
|