Skip to content

Commit 0f43dda

Browse files
committed
Whitespace cleanup.
Remove trailing spaces and use 4 spaces consistently for indentation.
1 parent a0bce62 commit 0f43dda

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2415
-2415
lines changed

Gruntfile.js

+22-22
Original file line numberDiff line numberDiff line change
@@ -217,25 +217,25 @@ module.exports = function(grunt) {
217217
});
218218

219219
// These plugins provide necessary tasks.
220+
grunt.loadNpmTasks('grunt-contrib-clean');
220221
grunt.loadNpmTasks('grunt-contrib-concat');
222+
grunt.loadNpmTasks('grunt-contrib-copy');
221223
grunt.loadNpmTasks('grunt-contrib-jshint');
222224
grunt.loadNpmTasks('grunt-contrib-watch');
223-
grunt.loadNpmTasks('grunt-contrib-clean');
224-
grunt.loadNpmTasks('grunt-contrib-copy');
225225
grunt.loadNpmTasks('grunt-include-replace');
226226

227227
// Default task.
228228
grunt.registerTask('default', ['test']);
229-
230-
//Alias for
229+
230+
//Alias for
231231
grunt.registerTask('lint', ['jshint']);
232-
232+
233233
//Testing
234234
grunt.registerTask('test', ['clean:build', 'jshint', 'concat', 'yuitest']);
235235
grunt.registerTask('rhino', ['clean:build', 'jshint', 'concat', 'test_rhino']);
236236

237237
grunt.registerTask('release', ['test', 'clean:release', 'copy:release', 'includereplace:release', 'changelog']);
238-
238+
239239
//Run the YUITest suite
240240
grunt.registerMultiTask('yuitest', 'Run the YUITests for the project', function() {
241241
/*jshint evil:true, node: true */
@@ -249,12 +249,12 @@ module.exports = function(grunt) {
249249
var errors = [],
250250
failures = [],
251251
stack = [];
252-
252+
253253
//Eval each file so the tests are brought into this scope where CSSLint and YUITest are loaded already
254254
files.forEach(function(filepath) {
255255
eval(grunt.file.read(filepath));
256256
});
257-
257+
258258
// From YUITest Node CLI
259259
function filterStackTrace(stackTrace){
260260
if (stackTrace){
@@ -276,7 +276,7 @@ module.exports = function(grunt) {
276276
return "Unavailable.";
277277
}
278278
}
279-
279+
280280
// From YUITest Node CLI with minor colourization changes
281281
function handleEvent(event){
282282

@@ -387,8 +387,8 @@ module.exports = function(grunt) {
387387
var done = this.async();
388388
var lastTag;
389389
var files = this.filesSrc;
390-
391-
390+
391+
392392
grunt.util.spawn({
393393
cmd: 'git',
394394
args: ['tag']
@@ -399,26 +399,26 @@ module.exports = function(grunt) {
399399
major = parseInt(semver[0], 10),
400400
minor = parseInt(semver[1], 10),
401401
patch = parseInt(semver[2], 10);
402-
403-
//A simple array sort can't be used because of the comparison of
402+
403+
//A simple array sort can't be used because of the comparison of
404404
//the strings '0.9.9' > '0.9.10'
405405
for (var i = 1, len = tags.length; i < len; i++) {
406406
semver = tags[i].replace('v','').split('.');
407-
407+
408408
var currentMajor = parseInt(semver[0], 10);
409409
if (currentMajor < major) {
410410
continue;
411411
} else if (currentMajor > major) {
412412
major = currentMajor;
413413
}
414-
414+
415415
var currentMinor = parseInt(semver[1], 10);
416416
if (currentMinor < minor) {
417417
continue;
418418
} else if (currentMinor > minor) {
419419
minor = currentMinor;
420420
}
421-
421+
422422
var currentPatch = parseInt(semver[2], 10);
423423
if (currentPatch < patch) {
424424
continue;
@@ -428,9 +428,9 @@ module.exports = function(grunt) {
428428
}
429429

430430
lastTag = 'v' + major + '.' + minor + '.' + patch;
431-
431+
432432
grunt.verbose.write('Last tag: ' + lastTag).writeln();
433-
433+
434434
//
435435
grunt.util.spawn({
436436
cmd: 'git',
@@ -445,9 +445,9 @@ module.exports = function(grunt) {
445445
grunt.file.read(files[0]);
446446

447447
grunt.file.write(files[0], grunt.template.process(template));
448-
448+
449449
done();
450-
});
450+
});
451451
});
452452

453453
});
@@ -457,13 +457,13 @@ module.exports = function(grunt) {
457457
var done = this.async();
458458
var files = this.filesSrc;
459459
var progress = files.length;
460-
460+
461461
files.forEach(function(filepath) {
462462
grunt.util.spawn({
463463
cmd: 'java',
464464
args: ['-jar', 'lib/js.jar', 'lib/yuitest-rhino-cli.js', 'build/csslint.js', filepath],
465465
opts: {stdio: 'inherit'}
466-
}, function(error, result, code) {
466+
}, function(error, result, code) {
467467
progress--;
468468
if (progress === 0) {
469469
done();

demos/demo.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ li.last.first {
2828
}
2929

3030

31-
@charset "UTF-8";
31+
@charset "UTF-8";
3232

3333
@page {
3434
margin: 10%;

0 commit comments

Comments
 (0)