Permalink
Browse files

Whitespace cleanup.

Remove trailing spaces and use 4 spaces consistently for indentation.
  • Loading branch information...
1 parent a0bce62 commit 0f43dda129cc967e408ea760f26ab793b2534bfb @XhmikosR XhmikosR committed Nov 2, 2013
Showing with 2,415 additions and 2,415 deletions.
  1. +22 −22 Gruntfile.js
  2. +1 −1 demos/demo.css
  3. +133 −133 release/csslint-node.js
  4. +447 −447 release/csslint-rhino.js
  5. +97 −97 release/csslint-tests.js
  6. +444 −444 release/csslint-worker.js
  7. +443 −443 release/csslint-wsh.js
  8. +443 −443 release/csslint.js
  9. +7 −7 release/npm/cli.js
  10. +133 −133 release/npm/lib/csslint-node.js
  11. +7 −7 src/cli/node.js
  12. +4 −4 src/cli/rhino.js
  13. +1 −1 src/core/Reporter.js
  14. +3 −3 src/formatters/checkstyle-xml.js
  15. +2 −2 src/formatters/compact.js
  16. +1 −1 src/formatters/csslint-xml.js
  17. +2 −2 src/formatters/lint-xml.js
  18. +2 −2 src/formatters/text.js
  19. +9 −9 src/rules/box-model.js
  20. +2 −2 src/rules/box-sizing.js
  21. +5 −5 src/rules/compatible-vendor-prefixes.js
  22. +5 −5 src/rules/display-property-grouping.js
  23. +11 −11 src/rules/duplicate-properties.js
  24. +14 −14 src/rules/fallback-colors.js
  25. +3 −3 src/rules/gradients.js
  26. +2 −2 src/rules/import.js
  27. +9 −9 src/rules/outline-none.js
  28. +6 −6 src/rules/overqualified-elements.js
  29. +2 −2 src/rules/selector-max-approaching.js
  30. +2 −2 src/rules/selector-max.js
  31. +15 −15 src/rules/shorthand.js
  32. +6 −6 src/rules/unique-headings.js
  33. +1 −1 src/rules/universal-selector.js
  34. +5 −5 src/rules/unqualified-attributes.js
  35. +24 −24 src/rules/vendor-prefix.js
  36. +1 −1 src/rules/zero-units.js
  37. +1 −1 src/worker/Worker.js
  38. +6 −6 tests/core/Reporter.js
  39. +3 −3 tests/css/width-100.html
  40. +2 −2 tests/formatters/compact.js
  41. +1 −1 tests/formatters/csslint-xml.js
  42. +1 −1 tests/formatters/junit-xml.js
  43. +1 −1 tests/formatters/lint-xml.js
  44. +2 −2 tests/formatters/text.js
  45. +1 −1 tests/rules/adjoining-classes.js
  46. +8 −8 tests/rules/box-model.js
  47. +10 −10 tests/rules/compatible-vendor-prefixes.js
  48. +1 −1 tests/rules/display-property-grouping.js
  49. +5 −5 tests/rules/duplicate-properties.js
  50. +16 −16 tests/rules/fallback-colors.js
  51. +1 −1 tests/rules/font-sizes.js
  52. +3 −3 tests/rules/gradients.js
  53. +1 −1 tests/rules/import.js
  54. +3 −3 tests/rules/known-properties.js
  55. +2 −2 tests/rules/outline-none.js
  56. +2 −2 tests/rules/overqualified-elements.js
  57. +7 −7 tests/rules/selector-max-approaching.js
  58. +7 −7 tests/rules/selector-max.js
  59. +2 −2 tests/rules/shorthand.js
  60. +1 −1 tests/rules/unique-headings.js
  61. +2 −2 tests/rules/universal-selector.js
  62. +4 −4 tests/rules/unqualified-attributes.js
  63. +5 −5 tests/rules/vendor-prefix.js
  64. +3 −3 tests/rules/zero-units.js
View
@@ -217,25 +217,25 @@ module.exports = function(grunt) {
});
// These plugins provide necessary tasks.
+ grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.loadNpmTasks('grunt-contrib-clean');
- grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-include-replace');
// Default task.
grunt.registerTask('default', ['test']);
-
- //Alias for
+
+ //Alias for
grunt.registerTask('lint', ['jshint']);
-
+
//Testing
grunt.registerTask('test', ['clean:build', 'jshint', 'concat', 'yuitest']);
grunt.registerTask('rhino', ['clean:build', 'jshint', 'concat', 'test_rhino']);
grunt.registerTask('release', ['test', 'clean:release', 'copy:release', 'includereplace:release', 'changelog']);
-
+
//Run the YUITest suite
grunt.registerMultiTask('yuitest', 'Run the YUITests for the project', function() {
/*jshint evil:true, node: true */
@@ -249,12 +249,12 @@ module.exports = function(grunt) {
var errors = [],
failures = [],
stack = [];
-
+
//Eval each file so the tests are brought into this scope where CSSLint and YUITest are loaded already
files.forEach(function(filepath) {
eval(grunt.file.read(filepath));
});
-
+
// From YUITest Node CLI
function filterStackTrace(stackTrace){
if (stackTrace){
@@ -276,7 +276,7 @@ module.exports = function(grunt) {
return "Unavailable.";
}
}
-
+
// From YUITest Node CLI with minor colourization changes
function handleEvent(event){
@@ -387,8 +387,8 @@ module.exports = function(grunt) {
var done = this.async();
var lastTag;
var files = this.filesSrc;
-
-
+
+
grunt.util.spawn({
cmd: 'git',
args: ['tag']
@@ -399,26 +399,26 @@ module.exports = function(grunt) {
major = parseInt(semver[0], 10),
minor = parseInt(semver[1], 10),
patch = parseInt(semver[2], 10);
-
- //A simple array sort can't be used because of the comparison of
+
+ //A simple array sort can't be used because of the comparison of
//the strings '0.9.9' > '0.9.10'
for (var i = 1, len = tags.length; i < len; i++) {
semver = tags[i].replace('v','').split('.');
-
+
var currentMajor = parseInt(semver[0], 10);
if (currentMajor < major) {
continue;
} else if (currentMajor > major) {
major = currentMajor;
}
-
+
var currentMinor = parseInt(semver[1], 10);
if (currentMinor < minor) {
continue;
} else if (currentMinor > minor) {
minor = currentMinor;
}
-
+
var currentPatch = parseInt(semver[2], 10);
if (currentPatch < patch) {
continue;
@@ -428,9 +428,9 @@ module.exports = function(grunt) {
}
lastTag = 'v' + major + '.' + minor + '.' + patch;
-
+
grunt.verbose.write('Last tag: ' + lastTag).writeln();
-
+
//
grunt.util.spawn({
cmd: 'git',
@@ -445,9 +445,9 @@ module.exports = function(grunt) {
grunt.file.read(files[0]);
grunt.file.write(files[0], grunt.template.process(template));
-
+
done();
- });
+ });
});
});
@@ -457,13 +457,13 @@ module.exports = function(grunt) {
var done = this.async();
var files = this.filesSrc;
var progress = files.length;
-
+
files.forEach(function(filepath) {
grunt.util.spawn({
cmd: 'java',
args: ['-jar', 'lib/js.jar', 'lib/yuitest-rhino-cli.js', 'build/csslint.js', filepath],
opts: {stdio: 'inherit'}
- }, function(error, result, code) {
+ }, function(error, result, code) {
progress--;
if (progress === 0) {
done();
View
@@ -28,7 +28,7 @@ li.last.first {
}
-@charset "UTF-8";
+@charset "UTF-8";
@page {
margin: 10%;
Oops, something went wrong.

0 comments on commit 0f43dda

Please sign in to comment.