moved jshint task to test and fixed lint errors

This commit is contained in:
Jarrod Overson 2014-07-26 19:22:30 -07:00
parent d4d45192e7
commit bf27b3e831
4 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@
"sub": true,
"undef": true,
"boss": true,
"unused": "vars",
"eqnull": true,
"node": true
}

View File

@ -46,6 +46,7 @@ module.exports = function(grunt) {
options: {
specs: 'test/fixtures/pivotal/spec/*Spec.js',
helpers: 'test/fixtures/pivotal/spec/*Helper.js',
summary: true,
junit: {
path: 'junit'
}
@ -131,6 +132,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-internal');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('test', ['connect:return500', 'jasmine', 'nodeunit']);
grunt.registerTask('default', ['jshint', 'test', 'build-contrib']);
grunt.registerTask('test', ['jshint', 'connect:return500', 'jasmine', 'nodeunit']);
grunt.registerTask('default', ['test', 'build-contrib']);
};

View File

@ -377,7 +377,6 @@ module.exports = function(grunt) {
function logStack(stack, indentLevel) {
var lines = (stack || '').split('\n');
var newArr = [];
for (var i = 0; i < lines.length && i < 11; i++) {
grunt.log.writeln((indent(indentLevel) + lines[i]));
}

View File

@ -1,4 +1,4 @@
/*global window:false, alert:false, jasmine:false, Node:false, */
/*global window:false, alert:false, jasmine:false, Node:false */
/*jshint curly:false*/
'use strict';