jenkins-bot has submitted this change and it was merged.

Change subject: Use grunt-banana-checker to check i18n files
......................................................................


Use grunt-banana-checker to check i18n files

Some options set to false to make it pass:
 - disallowDuplicateTranslations
 - disallowUnusedTranslations
 - requireCompleteMessageDocumentation

Like commit 5c9a981dd2ca02861edc0a6f2d96bdb650543b25
for mediawiki/extensions/Wikibase

Change-Id: If2beca9c4a4cc03e055e842d8303ad2facba0bd3
---
M Gruntfile.js
M package.json
2 files changed, 11 insertions(+), 1 deletion(-)

Approvals:
  JanZerebecki: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Gruntfile.js b/Gruntfile.js
index d931395..be72aec 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -2,6 +2,7 @@
 module.exports = function ( grunt ) {
        grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-jscs' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
 
        grunt.initConfig( {
                jshint: {
@@ -12,8 +13,16 @@
                },
                jscs: {
                        all: '.'
+               },
+               banana: {
+                       options: {
+                               disallowDuplicateTranslations: false,
+                               disallowUnusedTranslations: false,
+                               requireCompleteMessageDocumentation: false
+                       },
+                       all: 'i18n/'
                }
        } );
 
-       grunt.registerTask( 'test', [ 'jshint', 'jscs' ] );
+       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'banana' ] );
 };
diff --git a/package.json b/package.json
index 7daf7af..39a3c24 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
   "license": "GPL-2.0+",
   "devDependencies": {
     "grunt": "0.4.5",
+    "grunt-banana-checker": "0.3.0",
     "grunt-cli": "0.1.13",
     "grunt-contrib-jshint": "0.11.3",
     "grunt-jscs": "2.1.0"

-- 
To view, visit https://gerrit.wikimedia.org/r/243351
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If2beca9c4a4cc03e055e842d8303ad2facba0bd3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQuality
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to