Merge "Add grunt-lintspaces module to check cr-at-end in js files"

This commit is contained in:
Jenkins 2015-01-12 10:28:34 +00:00 committed by Gerrit Code Review
commit 61a098a0f9
88 changed files with 116 additions and 87 deletions

View File

@ -121,6 +121,25 @@ module.exports = function (grunt) {
}
},
/**
* grunt newlines
*
* Checks that all js files end with a newline
*/
lintspaces: {
dist: {
src: [
dir.source + '/**/*.js',
dir.test + '/**/*.js',
'./*.js'
],
options: {
newline: true,
trailingspaces: true
}
},
},
/**
* grunt recess
*
@ -444,6 +463,14 @@ module.exports = function (grunt) {
],
tasks: ['jshint']
},
lintspaces: {
files: [
'Gruntfile.js',
dir.source + '/**/*.js',
dir.test + '/**/*.js'
],
tasks: ['lintspaces']
},
livereload: {
options: {
livereload: config.livereload.port
@ -559,6 +586,7 @@ module.exports = function (grunt) {
'useminPrepare',
'concat',
'less',
'lintspaces',
'imagemin',
'html2js',
'copy:dist',

View File

@ -55,6 +55,7 @@
"selenium-standalone": "2.43.1-2.9.0-1",
"karma-html-reporter": "0.2.4",
"grunt-connect-proxy": "0.1.11",
"grunt-webfont": "0.4.8"
"grunt-webfont": "0.4.8",
"grunt-lintspaces": "0.6.0"
}
}