Use new banana checker as a linter to avoid lacking qqq messages
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 10 Apr 2014 00:25:21 +0000 (17:25 -0700)
committerJforrester <jforrester@wikimedia.org>
Tue, 15 Apr 2014 21:14:52 +0000 (21:14 +0000)
Bug: 61509
Change-Id: I67cd79a57355b0f09f8dbeea76b11f2db2b6ab2f

tests/frontend/Gruntfile.js
tests/frontend/package.json

index a8aad41..1e3f478 100644 (file)
@@ -5,6 +5,7 @@
 /*jshint node:true */
 module.exports = function ( grunt ) {
        grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.loadNpmTasks( 'grunt-contrib-watch' );
        grunt.loadNpmTasks( 'grunt-jscs-checker' );
 
@@ -36,6 +37,10 @@ module.exports = function ( grunt ) {
                                return patterns;
                        }, [] ) )
                },
+               banana: {
+                       core: 'languages/i18n/',
+                       installer: 'includes/installer/i18n/'
+               },
                watch: {
                        files: [
                                '.{jshintrc,jscs.json,jshintignore,csslintrc}',
@@ -45,7 +50,7 @@ module.exports = function ( grunt ) {
                }
        } );
 
-       grunt.registerTask( 'lint', ['jshint', 'jscs'] );
+       grunt.registerTask( 'lint', ['jshint', 'jscs', 'banana'] );
        grunt.registerTask( 'test', ['lint'] );
        grunt.registerTask( 'default', ['test'] );
 };
index 7694d4a..469e2c8 100644 (file)
@@ -8,6 +8,7 @@
     "grunt": "0.4.2",
     "grunt-contrib-jshint": "0.9.2",
     "grunt-contrib-watch": "0.6.1",
+    "grunt-banana-checker": "0.1.0",
     "grunt-jscs-checker": "0.4.1"
   }
 }