Browse files

Update lint commands

  • Loading branch information...
1 parent bd0244e commit 203f6877c54488472a0ffadea5c57255203e5cac @rowanmanning committed Oct 3, 2012
Showing with 18 additions and 17 deletions.
  1. +2 −2 Jakefile.coffee
  2. +0 −14 config/coffeelint.json
  3. +1 −1 package.json
  4. +15 −0 test/config/coffeelint.json
View
4 Jakefile.coffee
@@ -5,7 +5,7 @@ colors = require 'colors'
# Paths
paths =
- config: './config'
+ config: './test/config'
lib: './lib'
nodebin: './node_modules/.bin'
src: './src'
@@ -60,7 +60,7 @@ task 'default', ['build']
# Generate a lint command
getLintCommand = (options = {}) ->
options.configFile ?= "#{paths.config}/coffeelint.json"
- "#{paths.nodebin}/coffeelint -f #{options.configFile} #{paths.src}/** #{paths.unitTest}/**";
+ "#{paths.nodebin}/coffeelint -rf #{options.configFile} #{paths.src} #{paths.unitTest}";
# Generate a test command
getTestCommand = (options = {}) ->
View
14 config/coffeelint.json
@@ -1,14 +0,0 @@
-{
- "no_tabs": {"level": "error"},
- "no_trailing_whitespace": {"level": "error"},
- "max_line_length": {"level": "ignore"},
- "camel_case_classes": {"level": "error"},
- "indentation": {"level": "error", "value": 2},
- "no_implicit_braces": {"level": "ignore"},
- "no_trailing_semicolons": {"level": "error"},
- "no_plusplus": {"level": "ignore"},
- "no_throwing_strings": {"level": "error"},
- "cyclomatic_complexity": {"level": "warn", "value": 4},
- "line_endings": {"level": "error", "value": "unix"},
- "no_implicit_parens": {"level": "ignore"}
-}
View
2 package.json
@@ -28,7 +28,7 @@
"devDependencies": {
"chai": "1.1.x",
"coffee-script": "1.3.x",
- "coffeelint": "0.4.x",
+ "coffeelint": "0.5.x",
"colors": "0.6.0-1",
"jake": "0.3.x",
"mocha": "1.2.x",
View
15 test/config/coffeelint.json
@@ -0,0 +1,15 @@
+{
+ "camel_case_classes": { "level": "error" },
+ "cyclomatic_complexity": { "level": "warn", "value": 4 },
+ "indentation": { "level": "error", "value": 2 },
+ "line_endings": { "level": "error", "value": "unix" },
+ "max_line_length": { "level": "ignore"},
+ "no_backticks": { "level": "error" },
+ "no_implicit_braces": { "level": "ignore"},
+ "no_implicit_parens": { "level": "ignore"},
+ "no_plusplus": { "level": "error" },
+ "no_tabs": { "level": "error" },
+ "no_throwing_strings": { "level": "error" },
+ "no_trailing_semicolons": { "level": "error" },
+ "no_trailing_whitespace": { "level": "warn" }
+}

0 comments on commit 203f687

Please sign in to comment.