guard-coffeelint 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard/coffeelint.rb +5 -1
- data/lib/guard/coffeelint/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62ff247a23d83dcebcd9441ff035ef1403b75e25
|
4
|
+
data.tar.gz: bbe6c9bd964de31e6788642e8f3c48322932d60f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a82e630ef16e897bcc032697f5a6172db99845c0a1662b292b1161afd7d349e8b018e48a04b31229094ab685ff2f7bab207edcf10241e5338a347bc20d50a252
|
7
|
+
data.tar.gz: 7f35bc6ce203e3524adc9f6977c69e150514a25d572a3ec0fe7901408cea93c78e29958caa1cf0e9ad91aae339411c0ebcd04f1b004882c0d251d59b3e7716dc
|
data/lib/guard/coffeelint.rb
CHANGED
@@ -55,7 +55,11 @@ module Guard
|
|
55
55
|
|
56
56
|
|
57
57
|
def lint_and_report(path)
|
58
|
-
|
58
|
+
# This is reporting some bad false-positives
|
59
|
+
#errors = ::Coffeelint.lint_file(path, config_file: @config_file)
|
60
|
+
|
61
|
+
# This works :|
|
62
|
+
errors = JSON.parse(`coffeelint --reporter raw -f #{@config_file} #{path}`).values.first
|
59
63
|
|
60
64
|
if errors.length > 0
|
61
65
|
UI.warning "Coffeelint: #{path} has #{errors.length} errors"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-coffeelint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Eagar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|