Permalink
Browse files

fixed indentations, code style, and messages

  • Loading branch information...
1 parent ffb9872 commit a8c33a6a220ceb6e8769b358e9a5ff0de9aa0e28 @eabait eabait committed Mar 28, 2013
Showing with 26 additions and 27 deletions.
  1. +7 −7 lib/rulefactory.js
  2. +19 −20 tasks/arialinterTask.js
View
@@ -69,7 +69,7 @@ RuleFactory.prototype.makeRule = function(type) {
}));
this.rulesMap[type] = genericRule;
- break;
+ break;
case 'ielement':
genericRule = new Rule(createElementRule({
@@ -79,7 +79,7 @@ RuleFactory.prototype.makeRule = function(type) {
}));
this.rulesMap[type] = genericRule;
- break;
+ break;
case 'fontelement':
genericRule = new Rule(createElementRule({
@@ -89,7 +89,7 @@ RuleFactory.prototype.makeRule = function(type) {
}));
this.rulesMap[type] = genericRule;
- break;
+ break;
case 'blinkelement':
genericRule = new Rule(createElementRule({
@@ -99,7 +99,7 @@ RuleFactory.prototype.makeRule = function(type) {
}));
this.rulesMap[type] = genericRule;
- break;
+ break;
case 'marqueeelement':
genericRule = new Rule(createElementRule({
@@ -109,7 +109,7 @@ RuleFactory.prototype.makeRule = function(type) {
}));
this.rulesMap[type] = genericRule;
- break;
+ break;
case 'belement':
genericRule = new Rule(createElementRule({
@@ -119,11 +119,11 @@ RuleFactory.prototype.makeRule = function(type) {
}));
this.rulesMap[type] = genericRule;
- break;
+ break;
default:
this.rulesMap[type] = require('./rules/' + type);
- break;
+ break;
}
}
@@ -42,45 +42,44 @@ module.exports = function(grunt) {
x++;
if (linter.evaluate(options)){
- grunt.log.write('The HTML of the file ' + x + ' seems to be valid according the WCAG 2.0 spec.\n'.info);
+ grunt.log.write('File ' + x + ' markup seems to be valid.\n'.info);
callback();
} else {
- grunt.log.write('The HTML of the file ' + x + ' doenst seem to be valid according the WCAG 2.0 spec.\n'.error);
+ grunt.log.write('File ' + x + ' markup doesnt seem to be valid.\n'.error);
callback();
}
});
}, function() {
- done();
+ done();
});
};
if ((this.options().templates) && (this.options().levels)) {
- console.log('for templates and with level');
+ console.log('for templates and with level');
+ executeLinter(this.filesSrc, done, {
+ level: this.options().levels,
+ template: true
+ });
+ } else {
+ if (this.options().templates) {
+ console.log('only for templates');
executeLinter(this.filesSrc, done, {
- level: this.options().levels,
template: true
});
- } else {
- if (this.options().templates) {
- console.log('only for templates');
+ }
+ else {
+ if (this.options().levels) {
+ console.log('only for level');
executeLinter(this.filesSrc, done, {
- template: true
+ level: this.options().levels
});
}
else {
- if (this.options().levels) {
- console.log('only for level');
- executeLinter(this.filesSrc, done, {
- level: this.options().levels
- });
- }
- else {
- console.log('Applying default linter..');
- executeLinter(this.filesSrc, done);
- }
+ console.log('Applying default linter..');
+ executeLinter(this.filesSrc, done);
}
+ }
}
-
});
};

0 comments on commit a8c33a6

Please sign in to comment.