Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coffeelint

Package Overview
Dependencies
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeelint - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

.package.json

5

3rd_party_rules.md

@@ -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 @@ -------------------

19

lib/commandline.js

@@ -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;

22

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc