Permalink
Browse files

No issue: tabs to spaces

  • Loading branch information...
valueof committed Jan 26, 2014
1 parent ffa1d92 commit 3906c6087fbb85a6262d13aa6ac8934863ded11a
Showing with 65,459 additions and 65,459 deletions.
  1. +15 −15 bin/build
  2. +20 −20 bin/changelog
  3. +17 −17 bin/land
  4. +10 −10 data/ascii-identifier-data.js
  5. +1,568 −1,568 data/non-ascii-identifier-part-only.js
  6. +48,475 −48,475 data/non-ascii-identifier-start.js
  7. +14 −14 examples/reporter.js
  8. +69 −69 package.json
  9. +23 −23 scripts/generate-identifier-data.js
  10. +413 −413 src/cli.js
  11. +5,091 −5,091 src/jshint.js
  12. +1,521 −1,521 src/lex.js
  13. +190 −190 src/messages.js
  14. +108 −108 src/platforms/rhino.js
  15. +4 −4 src/reg.js
  16. +65 −65 src/reporters/checkstyle.js
  17. +23 −23 src/reporters/default.js
  18. +54 −54 src/reporters/jslint_xml.js
  19. +48 −48 src/reporters/non_error.js
  20. +18 −18 src/state.js
  21. +167 −167 src/style.js
  22. +527 −527 src/vars.js
  23. +813 −813 tests/cli.js
  24. +78 −78 tests/helpers/coveraje.js
  25. +1 −1 tests/helpers/fixture.js
  26. +123 −123 tests/helpers/testhelper.js
  27. +4 −4 tests/regression/npm.js
  28. +206 −206 tests/regression/thirdparty.js
  29. +469 −469 tests/unit/core.js
  30. +633 −633 tests/unit/envs.js
  31. +3 −3 tests/unit/fixtures/boss.js
  32. +1 −1 tests/unit/fixtures/camelcase.js
  33. +7 −7 tests/unit/fixtures/comma.js
  34. +3 −3 tests/unit/fixtures/default-arguments.js
  35. +1 −1 tests/unit/fixtures/es5Reserved.js
  36. +3 −3 tests/unit/fixtures/es6-import-export.js
  37. +5 −5 tests/unit/fixtures/exported.js
  38. +4 −4 tests/unit/fixtures/gh668.js
  39. +3 −3 tests/unit/fixtures/ignored.js
  40. +3 −3 tests/unit/fixtures/leak.js
  41. +9 −9 tests/unit/fixtures/nativeobject.js
  42. +3 −3 tests/unit/fixtures/reserved.js
  43. +5 −5 tests/unit/fixtures/switchDefaultFirst.js
  44. +8 −8 tests/unit/fixtures/unused.js
  45. +1,149 −1,149 tests/unit/options.js
  46. +3,485 −3,485 tests/unit/parser.js
View
@@ -9,24 +9,24 @@ var version = require("../package.json").version;
require("shelljs/make");
if (!test("-e", "../dist"))
- mkdir("../dist");
+ mkdir("../dist");
bundle.require("./src/jshint.js", { expose: "jshint" });
bundle.bundle({}, function (err, src) {
- var web = "./dist/jshint.js";
- var rhino = "./dist/jshint-rhino.js";
+ var web = "./dist/jshint.js";
+ var rhino = "./dist/jshint-rhino.js";
- [ "// " + version,
- "var JSHINT;",
- "if (typeof window === 'undefined') window = {};",
- "(function () {",
- "var require;",
- src,
- "JSHINT = require('jshint').JSHINT;",
- "if (typeof exports === 'object' && exports) exports.JSHINT = JSHINT;",
- "}());"
- ].join("\n").to(web);
+ [ "// " + version,
+ "var JSHINT;",
+ "if (typeof window === 'undefined') window = {};",
+ "(function () {",
+ "var require;",
+ src,
+ "JSHINT = require('jshint').JSHINT;",
+ "if (typeof exports === 'object' && exports) exports.JSHINT = JSHINT;",
+ "}());"
+ ].join("\n").to(web);
- ("#!/usr/bin/env rhino\nvar window = {};\n" + cat(web, "./src/platforms/rhino.js")).to(rhino);
- chmod("+x", rhino);
+ ("#!/usr/bin/env rhino\nvar window = {};\n" + cat(web, "./src/platforms/rhino.js")).to(rhino);
+ chmod("+x", rhino);
});
View
@@ -7,30 +7,30 @@ var version = require("../package.json").version;
require("shelljs/make");
exec("git log --format='%H|%h|%an|%s' " + version + "..HEAD", { silent: true }, function (code, output) {
- if (code !== 0)
- return void console.log("git log return code is non-zero");
+ if (code !== 0)
+ return void console.log("git log return code is non-zero");
- var commits = output.split("\n")
- .filter(function (cmt) { return cmt.trim() !== "" })
- .map(function (cmt) { return cmt.split("|") });
+ var commits = output.split("\n")
+ .filter(function (cmt) { return cmt.trim() !== "" })
+ .map(function (cmt) { return cmt.split("|") });
- var html = "";
- var authors = {};
+ var html = "";
+ var authors = {};
- commits.forEach(function (cmt) {
- var tr = "";
- tr += "<td class='commit'><a href='https://github.com/jshint/jshint/commit/" + cmt[0] + "'>" + cmt[1] + "</a></td>";
- tr += "<td class='desc'>" + cmt[3].replace(/(#(\d+))/, "<a href='https://github.com/jshint/jshint/issues/$2/'>$1</a>") + "</td>";
- html += "<tr>" + tr + "</tr>\n";
+ commits.forEach(function (cmt) {
+ var tr = "";
+ tr += "<td class='commit'><a href='https://github.com/jshint/jshint/commit/" + cmt[0] + "'>" + cmt[1] + "</a></td>";
+ tr += "<td class='desc'>" + cmt[3].replace(/(#(\d+))/, "<a href='https://github.com/jshint/jshint/issues/$2/'>$1</a>") + "</td>";
+ html += "<tr>" + tr + "</tr>\n";
- if (cmt[2] !== "Anton Kovalyov")
- authors[cmt[2]] = true;
- });
+ if (cmt[2] !== "Anton Kovalyov")
+ authors[cmt[2]] = true;
+ });
- echo("<!-- auto-generated -->");
- echo("<table class='changelog'>\n" + html + "</table>\n");
+ echo("<!-- auto-generated -->");
+ echo("<table class='changelog'>\n" + html + "</table>\n");
- if (Object.keys(authors).length) {
- echo("<p class='thx'><strong>Thanks</strong> to " + Object.keys(authors).join(", ") + " for sending patches!</p>");
- }
+ if (Object.keys(authors).length) {
+ echo("<p class='thx'><strong>Thanks</strong> to " + Object.keys(authors).join(", ") + " for sending patches!</p>");
+ }
});
View
@@ -12,23 +12,23 @@ opts.agent = new https.Agent(opts);
https.get(opts, succ).on("error", err);
function succ(res) {
- if (res.statusCode !== 200)
- return void console.log("error:", res.statusCode);
-
- var data = "";
- res.on("data", function (chunk) {
- data += chunk.toString();
- });
-
- res.on("end", function () {
- data = data.split("\n");
- data = data[1].replace(/^From\:\s/, "");
- data = data.replace(/"/g, "");
-
- shjs.exec("git commit -s --author=\"" + data + "\" --message=\"" + msg + "\"");
- })
+ if (res.statusCode !== 200)
+ return void console.log("error:", res.statusCode);
+
+ var data = "";
+ res.on("data", function (chunk) {
+ data += chunk.toString();
+ });
+
+ res.on("end", function () {
+ data = data.split("\n");
+ data = data[1].replace(/^From\:\s/, "");
+ data = data.replace(/"/g, "");
+
+ shjs.exec("git commit -s --author=\"" + data + "\" --message=\"" + msg + "\"");
+ })
}
function err(res) {
- console.log("error:", res.message);
-}
+ console.log("error:", res.message);
+}
@@ -1,22 +1,22 @@
var identifierStartTable = [];
for (var i = 0; i < 128; i++) {
- identifierStartTable[i] =
- i === 36 || // $
- i >= 65 && i <= 90 || // A-Z
- i === 95 || // _
- i >= 97 && i <= 122; // a-z
+ identifierStartTable[i] =
+ i === 36 || // $
+ i >= 65 && i <= 90 || // A-Z
+ i === 95 || // _
+ i >= 97 && i <= 122; // a-z
}
var identifierPartTable = [];
for (var i = 0; i < 128; i++) {
- identifierPartTable[i] =
- identifierStartTable[i] || // $, _, A-Z, a-z
- i >= 48 && i <= 57; // 0-9
+ identifierPartTable[i] =
+ identifierStartTable[i] || // $, _, A-Z, a-z
+ i >= 48 && i <= 57; // 0-9
}
module.exports = {
- asciiIdentifierStartTable: identifierStartTable,
- asciiIdentifierPartTable: identifierPartTable
+ asciiIdentifierStartTable: identifierStartTable,
+ asciiIdentifierPartTable: identifierPartTable
};
Oops, something went wrong.

0 comments on commit 3906c60

Please sign in to comment.