@@ -25,7 +25,7 @@ module.exports = function (grunt) {
2525 'use strict' ;
2626
2727 // load dependencies
28- require ( 'load-grunt-tasks' ) ( grunt , { pattern : [ 'grunt-contrib-*' , 'grunt-targethtml' , 'grunt-usemin' ] } ) ;
28+ require ( 'load-grunt-tasks' ) ( grunt , { pattern : [ 'grunt-contrib-*' , 'grunt-targethtml' , 'grunt-usemin' , 'grunt-jslint' ] } ) ;
2929 grunt . loadTasks ( 'tasks' ) ;
3030
3131 var common = require ( "./tasks/lib/common" ) ( grunt ) ;
@@ -291,6 +291,24 @@ module.exports = function (grunt) {
291291 jshintrc : '.jshintrc'
292292 }
293293 } ,
294+ jslint : {
295+ client : {
296+ src : [ 'src/**/*.js' ] ,
297+ exclude : [ 'src/thirdparty/**/*.js' , 'src/widgets/**/*.js' ] ,
298+ directives : {
299+ "vars" : true ,
300+ "plusplus" : true ,
301+ "devel" : true ,
302+ "nomen" : true ,
303+ "white" : true ,
304+ "maxerr" : 50
305+ } ,
306+ options : {
307+ errorsOnly : false , // only display errors
308+ failOnError : true , // defaults to true
309+ }
310+ }
311+ } ,
294312 shell : {
295313 repo : grunt . option ( "shell-repo" ) || "../brackets-shell" ,
296314 mac : "<%= shell.repo %>/installer/mac/staging/<%= pkg.name %>.app" ,
@@ -303,7 +321,7 @@ module.exports = function (grunt) {
303321 grunt . registerTask ( 'install' , [ 'write-config' , 'less' ] ) ;
304322
305323 // task: test
306- grunt . registerTask ( 'test' , [ 'jshint:all' , 'jasmine' ] ) ;
324+ grunt . registerTask ( 'test' , [ 'jslint' , ' jshint:all', 'jasmine' ] ) ;
307325// grunt.registerTask('test', ['jshint:all', 'jasmine', 'jasmine_node']);
308326
309327 // task: set-sprint
0 commit comments