Skip to content

Commit

Permalink
Whitespace cleanup.
Browse files Browse the repository at this point in the history
Remove trailing spaces and use 4 spaces consistently for indentation.
  • Loading branch information
XhmikosR committed Nov 22, 2013
1 parent a0bce62 commit 0f43dda
Show file tree
Hide file tree
Showing 64 changed files with 2,415 additions and 2,415 deletions.
44 changes: 22 additions & 22 deletions Gruntfile.js
Expand Up @@ -217,25 +217,25 @@ module.exports = function(grunt) {
}); });


// These plugins provide necessary tasks. // These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-include-replace'); grunt.loadNpmTasks('grunt-include-replace');


// Default task. // Default task.
grunt.registerTask('default', ['test']); grunt.registerTask('default', ['test']);

//Alias for //Alias for
grunt.registerTask('lint', ['jshint']); grunt.registerTask('lint', ['jshint']);

//Testing //Testing
grunt.registerTask('test', ['clean:build', 'jshint', 'concat', 'yuitest']); grunt.registerTask('test', ['clean:build', 'jshint', 'concat', 'yuitest']);
grunt.registerTask('rhino', ['clean:build', 'jshint', 'concat', 'test_rhino']); grunt.registerTask('rhino', ['clean:build', 'jshint', 'concat', 'test_rhino']);


grunt.registerTask('release', ['test', 'clean:release', 'copy:release', 'includereplace:release', 'changelog']); grunt.registerTask('release', ['test', 'clean:release', 'copy:release', 'includereplace:release', 'changelog']);

//Run the YUITest suite //Run the YUITest suite
grunt.registerMultiTask('yuitest', 'Run the YUITests for the project', function() { grunt.registerMultiTask('yuitest', 'Run the YUITests for the project', function() {
/*jshint evil:true, node: true */ /*jshint evil:true, node: true */
Expand All @@ -249,12 +249,12 @@ module.exports = function(grunt) {
var errors = [], var errors = [],
failures = [], failures = [],
stack = []; stack = [];

//Eval each file so the tests are brought into this scope where CSSLint and YUITest are loaded already //Eval each file so the tests are brought into this scope where CSSLint and YUITest are loaded already
files.forEach(function(filepath) { files.forEach(function(filepath) {
eval(grunt.file.read(filepath)); eval(grunt.file.read(filepath));
}); });

// From YUITest Node CLI // From YUITest Node CLI
function filterStackTrace(stackTrace){ function filterStackTrace(stackTrace){
if (stackTrace){ if (stackTrace){
Expand All @@ -276,7 +276,7 @@ module.exports = function(grunt) {
return "Unavailable."; return "Unavailable.";
} }
} }

// From YUITest Node CLI with minor colourization changes // From YUITest Node CLI with minor colourization changes
function handleEvent(event){ function handleEvent(event){


Expand Down Expand Up @@ -387,8 +387,8 @@ module.exports = function(grunt) {
var done = this.async(); var done = this.async();
var lastTag; var lastTag;
var files = this.filesSrc; var files = this.filesSrc;


grunt.util.spawn({ grunt.util.spawn({
cmd: 'git', cmd: 'git',
args: ['tag'] args: ['tag']
Expand All @@ -399,26 +399,26 @@ module.exports = function(grunt) {
major = parseInt(semver[0], 10), major = parseInt(semver[0], 10),
minor = parseInt(semver[1], 10), minor = parseInt(semver[1], 10),
patch = parseInt(semver[2], 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' //the strings '0.9.9' > '0.9.10'
for (var i = 1, len = tags.length; i < len; i++) { for (var i = 1, len = tags.length; i < len; i++) {
semver = tags[i].replace('v','').split('.'); semver = tags[i].replace('v','').split('.');

var currentMajor = parseInt(semver[0], 10); var currentMajor = parseInt(semver[0], 10);
if (currentMajor < major) { if (currentMajor < major) {
continue; continue;
} else if (currentMajor > major) { } else if (currentMajor > major) {
major = currentMajor; major = currentMajor;
} }

var currentMinor = parseInt(semver[1], 10); var currentMinor = parseInt(semver[1], 10);
if (currentMinor < minor) { if (currentMinor < minor) {
continue; continue;
} else if (currentMinor > minor) { } else if (currentMinor > minor) {
minor = currentMinor; minor = currentMinor;
} }

var currentPatch = parseInt(semver[2], 10); var currentPatch = parseInt(semver[2], 10);
if (currentPatch < patch) { if (currentPatch < patch) {
continue; continue;
Expand All @@ -428,9 +428,9 @@ module.exports = function(grunt) {
} }


lastTag = 'v' + major + '.' + minor + '.' + patch; lastTag = 'v' + major + '.' + minor + '.' + patch;

grunt.verbose.write('Last tag: ' + lastTag).writeln(); grunt.verbose.write('Last tag: ' + lastTag).writeln();

// //
grunt.util.spawn({ grunt.util.spawn({
cmd: 'git', cmd: 'git',
Expand All @@ -445,9 +445,9 @@ module.exports = function(grunt) {
grunt.file.read(files[0]); grunt.file.read(files[0]);


grunt.file.write(files[0], grunt.template.process(template)); grunt.file.write(files[0], grunt.template.process(template));

done(); done();
}); });
}); });


}); });
Expand All @@ -457,13 +457,13 @@ module.exports = function(grunt) {
var done = this.async(); var done = this.async();
var files = this.filesSrc; var files = this.filesSrc;
var progress = files.length; var progress = files.length;

files.forEach(function(filepath) { files.forEach(function(filepath) {
grunt.util.spawn({ grunt.util.spawn({
cmd: 'java', cmd: 'java',
args: ['-jar', 'lib/js.jar', 'lib/yuitest-rhino-cli.js', 'build/csslint.js', filepath], args: ['-jar', 'lib/js.jar', 'lib/yuitest-rhino-cli.js', 'build/csslint.js', filepath],
opts: {stdio: 'inherit'} opts: {stdio: 'inherit'}
}, function(error, result, code) { }, function(error, result, code) {
progress--; progress--;
if (progress === 0) { if (progress === 0) {
done(); done();
Expand Down
2 changes: 1 addition & 1 deletion demos/demo.css
Expand Up @@ -28,7 +28,7 @@ li.last.first {
} }




@charset "UTF-8"; @charset "UTF-8";


@page { @page {
margin: 10%; margin: 10%;
Expand Down

0 comments on commit 0f43dda

Please sign in to comment.