coffeelint
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -51,2 +51,7 @@ Creating a 3rd party rule | ||
By convention rule authors add the keyword `coffeelintrule` to their npm | ||
`package.json` so custom rules can be found easily. Click | ||
[here](https://npmjs.org/search?q=coffeelintrule) to list all currently available | ||
custom rules on npm. | ||
Verify Installation | ||
@@ -53,0 +58,0 @@ ------------------- |
@@ -1,2 +0,1 @@ | ||
// Generated by CoffeeScript 1.6.2 | ||
/* | ||
@@ -34,3 +33,2 @@ CoffeeLint | ||
var realPath; | ||
realPath = fs.realpathSync(path); | ||
@@ -42,3 +40,2 @@ return fs.readFileSync(realPath).toString(); | ||
var files, p, _i, _len; | ||
files = []; | ||
@@ -72,3 +69,2 @@ for (_i = 0, _len = paths.length; _i < _len; _i++) { | ||
var error, errorCount, errors, pathCount, warningCount, _i, _len, _ref; | ||
pathCount = errorCount = warningCount = 0; | ||
@@ -119,3 +115,2 @@ _ref = this.paths; | ||
var error, _i, _len, _ref; | ||
_ref = this.paths[path]; | ||
@@ -149,3 +144,2 @@ for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
var map, message, styles; | ||
message = arguments[0], styles = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
@@ -168,3 +162,2 @@ if (!this.colorize) { | ||
var errors, paths, report; | ||
paths = this.errorReport.paths; | ||
@@ -186,3 +179,2 @@ report = ""; | ||
var e, err, file, msg, p, start, w, warn; | ||
start = s.errorCount > 0 ? "" + this.err + " " + (this.stylize("Lint!", 'red', 'bold')) : s.warningCount > 0 ? "" + this.warn + " " + (this.stylize("Warning!", 'yellow', 'bold')) : "" + this.ok + " " + (this.stylize("Ok!", 'green', 'bold')); | ||
@@ -201,3 +193,2 @@ e = s.errorCount; | ||
var color, e, hasError, hasWarning, lineEnd, o, output, overall, pathReport, _i, _len, _ref; | ||
_ref = (hasError = this.errorReport.pathHasError(path)) ? [this.err, 'red'] : (hasWarning = this.errorReport.pathHasWarning(path)) ? [this.warn, 'yellow'] : [this.ok, 'green'], overall = _ref[0], color = _ref[1]; | ||
@@ -254,3 +245,2 @@ pathReport = ""; | ||
var e, errors, f, header, _ref1, _results; | ||
header = ["path", "lineNumber", "lineNumberEnd", "level", "message"]; | ||
@@ -264,3 +254,2 @@ this.print(header.join(",")); | ||
var _i, _len, _ref2, _results1; | ||
_results1 = []; | ||
@@ -295,3 +284,2 @@ for (_i = 0, _len = errors.length; _i < _len; _i++) { | ||
var e, errors, _i, _len, _ref2, _ref3; | ||
this.print("<?xml version=\"1.0\" encoding=\"utf-8\"?><jslint>"); | ||
@@ -315,3 +303,2 @@ _ref2 = this.errorReport.paths; | ||
var r, replacements, _i, _len; | ||
msg = "" + msg; | ||
@@ -343,3 +330,2 @@ if (!msg) { | ||
var context, e, errors, level, _i, _len, _ref3, _ref4; | ||
this.print("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); | ||
@@ -373,3 +359,2 @@ this.print("<checkstyle version=\"4.3\">"); | ||
var data, errorReport, file, fileConfig, literate, ruleName, source, _i, _len; | ||
errorReport = new ErrorReport(); | ||
@@ -394,3 +379,2 @@ for (_i = 0, _len = files.length; _i < _len; _i++) { | ||
var data, errorReport, ruleName; | ||
if (literate == null) { | ||
@@ -422,3 +406,2 @@ literate = false; | ||
var e, rule, ruleModule, _i, _len, _results; | ||
if (ruleName == null) { | ||
@@ -453,3 +436,2 @@ ruleName = void 0; | ||
var colorize, reporter; | ||
reporter = options.argv.jslint ? new JSLintReporter(errorReport) : options.argv.csv ? new CSVReporter(errorReport) : options.argv.checkstyle ? new CheckstyleReporter(errorReport) : (colorize = !options.argv.nocolor, new Reporter(errorReport, colorize)); | ||
@@ -501,3 +483,2 @@ reporter.publish(); | ||
var errorReport; | ||
errorReport = lintSource(data, config, options.argv.literate); | ||
@@ -504,0 +485,0 @@ return reportAndExit(errorReport, options); |
@@ -1,2 +0,1 @@ | ||
// Generated by CoffeeScript 1.6.2 | ||
/* | ||
@@ -19,3 +18,2 @@ Helpers for finding CoffeeLint config in standard locations, similar to how | ||
var filename, parent; | ||
dir = dir || process.cwd(); | ||
@@ -38,3 +36,2 @@ filename = path.normalize(path.join(dir, name)); | ||
var fp; | ||
fp = findFile("package.json", dir); | ||
@@ -48,3 +45,2 @@ if (fp) { | ||
var e; | ||
try { | ||
@@ -61,3 +57,2 @@ return JSON.parse(fs.readFileSync(filename).toString()); | ||
var dir, envs, home, npmConfig, projConfig; | ||
if (filename == null) { | ||
@@ -64,0 +59,0 @@ filename = null; |
{ | ||
"name": "coffeelint", | ||
"description": "Lint your CoffeeScript", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"homepage": "http://www.coffeelint.org", | ||
@@ -26,5 +26,3 @@ "keywords": [ | ||
"coffee-script": "1.6.x", | ||
"glob": ">=3.1.9", | ||
"browserify": "~2.26.0", | ||
"coffeeify": "~0.5.1" | ||
"glob": ">=3.1.9" | ||
}, | ||
@@ -42,12 +40,12 @@ "devDependencies": { | ||
"scripts": { | ||
"pretest": "npm run compile", | ||
"pretest": "cake compile", | ||
"test": "vows --spec test/*.coffee test/*.litcoffee", | ||
"posttest": "npm run lint", | ||
"prepublish": "npm run compile", | ||
"install": "echo 'process.exit(require(\"fs\").existsSync(\"lib/commandline.js\") ? 0 : 1)' | node || npm run compile", | ||
"lint": "npm run compile && ./bin/coffeelint -f coffeelint.json src/*.coffee test/*.coffee test/*.litcoffee", | ||
"lint-csv": "npm run compile && ./bin/coffeelint --csv -f coffeelint.json src/*.coffee test/*.coffee", | ||
"lint-jslint": "npm run compile && ./bin/coffeelint --jslint -f coffeelint.json src/*.coffee test/*.coffee", | ||
"compile": "coffee -c -o lib src && ./node_modules/browserify/bin/cmd.js -t coffeeify -s coffeelint -e src/coffeelint.coffee > lib/coffeelint.js" | ||
"prepublish": "cake prepublish", | ||
"publish": "cake publish", | ||
"lint": "cake compile && ./bin/coffeelint -f coffeelint.json src/*.coffee test/*.coffee test/*.litcoffee", | ||
"lint-csv": "cake compile && ./bin/coffeelint --csv -f coffeelint.json src/*.coffee test/*.coffee", | ||
"lint-jslint": "cake compile && ./bin/coffeelint --jslint -f coffeelint.json src/*.coffee test/*.coffee", | ||
"compile": "cake compile" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
3
14
167707
48
2331
- Removedbrowserify@~2.26.0
- Removedcoffeeify@~0.5.1
- RemovedBase64@0.1.4(transitive)
- RemovedJSONStream@0.4.40.6.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedastw@0.0.0(transitive)
- Removedbase64-js@0.0.2(transitive)
- Removedbops@0.0.6(transitive)
- Removedbrowser-builtins@1.0.7(transitive)
- Removedbrowser-pack@0.10.2(transitive)
- Removedbrowser-resolve@1.1.4(transitive)
- Removedbrowserify@2.26.0(transitive)
- Removedbuffer-browserify@0.1.0(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedcoffeeify@0.5.2(transitive)
- Removedcombine-source-map@0.1.3(transitive)
- Removedcommondir@0.0.2(transitive)
- Removedconcat-stream@1.0.1(transitive)
- Removedconsole-browserify@0.1.6(transitive)
- Removedconstants-browserify@0.0.1(transitive)
- Removedconvert-source-map@0.2.6(transitive)
- Removedcrypto-browserify@1.0.9(transitive)
- Removeddeep-equal@0.0.0(transitive)
- Removeddefined@0.0.0(transitive)
- Removeddeps-sort@0.1.2(transitive)
- Removeddetective@2.1.2(transitive)
- Removedduplexer@0.0.40.1.2(transitive)
- Removedescodegen@0.0.15(transitive)
- Removedesprima@0.9.91.0.2(transitive)
- Removedevent-stream@3.0.20(transitive)
- Removedfrom@0.1.7(transitive)
- Removedhttp-browserify@0.1.14(transitive)
- Removedindexof@0.0.1(transitive)
- Removedinherits@1.0.2(transitive)
- Removedinline-source-map@0.2.5(transitive)
- Removedinsert-module-globals@1.2.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedjsonparse@0.0.5(transitive)
- Removedlexical-scope@0.0.15(transitive)
- Removedmap-stream@0.0.7(transitive)
- Removedmodule-deps@1.0.2(transitive)
- Removedoptimist@0.3.70.5.2(transitive)
- Removedparents@0.0.3(transitive)
- Removedparse-base64vlq-mappings@0.1.4(transitive)
- Removedpath-platform@0.0.1(transitive)
- Removedpause-stream@0.0.11(transitive)
- Removedprocess@0.5.2(transitive)
- Removedpunycode@1.2.4(transitive)
- Removedresolve@0.3.10.4.30.5.1(transitive)
- Removedrfile@1.0.0(transitive)
- Removedruglify@1.0.0(transitive)
- Removedshell-quote@0.0.1(transitive)
- Removedsource-map@0.1.43(transitive)
- Removedsplit@0.2.10(transitive)
- Removedstream-combiner@0.0.4(transitive)
- Removedsyntax-error@0.0.1(transitive)
- Removedtape@0.2.2(transitive)
- Removedthrough@2.2.72.3.8(transitive)
- Removedto-utf8@0.0.1(transitive)
- Removeduglify-js@2.2.5(transitive)
- Removedumd@1.1.1(transitive)
- Removedvm-browserify@0.0.4(transitive)
- Removedzlib-browserify@0.0.3(transitive)