coffeelint 0.2.7 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/coffeelint/lib/coffeelint.js +13 -5
- data/lib/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: 18e8384007a23b427d77d61296f6620c1315169d
|
|
4
|
+
data.tar.gz: c057588f3b99110d18e78f5b8a2303e9cc84b072
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90c1107483e85fa8bcebd329dc736c405502c924150672c0b3c14e2876496a4e69a2dcf2f89a9a88712327ff4e675ea3ef7d3e231ea4f853ed0cee0b19ca1e9c
|
|
7
|
+
data.tar.gz: 7448dcd8573831b69112cd274d2272fc990c3d46c5d893bb1481608bb804960396d01c1bc1658ec1480aa56822c778ca5c6cef088a2ccdb4a160890b51dc06d9
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Coffeelint [](https://travis-ci.org/zmbush/coffeelint-ruby) [](http://badge.fury.io/rb/coffeelint)
|
|
2
2
|
|
|
3
|
-
Using coffeelint version: v1.
|
|
3
|
+
Using coffeelint version: v1.4.1
|
|
4
4
|
|
|
5
5
|
Coffeelint is a set of simple ruby bindings for [coffeelint](https://github.com/clutchski/coffeelint).
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
module.exports={
|
|
3
3
|
"name": "coffeelint",
|
|
4
4
|
"description": "Lint your CoffeeScript",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.4.1",
|
|
6
6
|
"homepage": "http://www.coffeelint.org",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"lint",
|
|
@@ -22,11 +22,12 @@ module.exports={
|
|
|
22
22
|
"coffeelint": "./bin/coffeelint"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"
|
|
25
|
+
"browserify": "~3.37",
|
|
26
26
|
"coffee-script": "~1.7",
|
|
27
|
+
"coffeeify": "~0.6.0",
|
|
27
28
|
"glob": ">=3.1.9",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
29
|
+
"optimist": ">=0.2.8",
|
|
30
|
+
"resolve": "^0.6.3"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"vows": ">=0.6.0",
|
|
@@ -471,7 +472,7 @@ hasSyntaxError = function(source) {
|
|
|
471
472
|
};
|
|
472
473
|
|
|
473
474
|
coffeelint.lint = function(source, userConfig, literate) {
|
|
474
|
-
var all_errors, astErrors, block_config, cmd, config, disabled, disabled_initially, e, errors, i, l, lexErrors, lexicalLinter, lineErrors, lineLinter, next_line, r, rules, s, tokensByLine, _i, _j, _k, _len, _len1, _ref, _ref1, _ref2, _ref3, _ref4;
|
|
475
|
+
var all_errors, astErrors, block_config, cmd, config, disabled, disabled_initially, e, errors, i, l, lexErrors, lexicalLinter, lineErrors, lineLinter, name, next_line, r, rules, s, tokensByLine, _i, _j, _k, _len, _len1, _ref, _ref1, _ref2, _ref3, _ref4;
|
|
475
476
|
if (userConfig == null) {
|
|
476
477
|
userConfig = {};
|
|
477
478
|
}
|
|
@@ -481,6 +482,13 @@ coffeelint.lint = function(source, userConfig, literate) {
|
|
|
481
482
|
if (literate) {
|
|
482
483
|
source = this.invertLiterate(source);
|
|
483
484
|
}
|
|
485
|
+
for (name in userConfig) {
|
|
486
|
+
if (name !== 'coffeescript_error' && name !== '_comment') {
|
|
487
|
+
if (_rules[name] == null) {
|
|
488
|
+
void 0;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
484
492
|
config = mergeDefaultConfig(userConfig);
|
|
485
493
|
disabled_initially = [];
|
|
486
494
|
_ref = source.split('\n');
|
data/lib/coffeelint/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coffeelint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zachary Bush
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: coffee-script
|