Ricordisamoa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/243607

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

Like commit 5c9a981dd2ca02861edc0a6f2d96bdb650543b25
for mediawiki/extensions/Wikibase and
commit db7f559b48b80e3f5935689a412770037fdb6200
for mediawiki/extensions/WikibaseQuality

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


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
 refs/changes/07/243607/1

diff --git a/Gruntfile.js b/Gruntfile.js
index d931395..e169f16 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,15 @@
                },
                jscs: {
                        all: '.'
+               },
+               banana: {
+                       options: {
+                               disallowDuplicateTranslations: false,
+                               disallowUnusedTranslations: false
+                       },
+                       all: 'i18n/'
                }
        } );
 
-       grunt.registerTask( 'test', [ 'jshint', 'jscs' ] );
+       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'banana' ] );
 };
diff --git a/package.json b/package.json
index cf665df..149282e 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/243607
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I00f3fb077089b599a7d1cc6e28b33423acd4c6eb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>

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

Reply via email to