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:
- disallowBlankTranslations
- disallowDuplicateTranslations
- disallowUnusedTranslations
- requireCompleteMessageDocumentation
Change-Id: I3a2ce5e8d508e04c3aa56d4da130b7c2458805d3
---
M Gruntfile.js
M package.json
2 files changed, 16 insertions(+), 1 deletion(-)
Approvals:
JanZerebecki: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Gruntfile.js b/Gruntfile.js
index d931395..3946638 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,21 @@
},
jscs: {
all: '.'
+ },
+ banana: {
+ options: {
+ disallowBlankTranslations: false,
+ disallowDuplicateTranslations: false,
+ disallowUnusedTranslations: false,
+ requireCompleteMessageDocumentation: false
+ },
+ all: [
+ 'client/i18n/',
+ 'lib/i18n/',
+ 'repo/i18n/'
+ ]
}
} );
- grunt.registerTask( 'test', [ 'jshint', 'jscs' ] );
+ grunt.registerTask( 'test', [ 'jshint', 'jscs', 'banana' ] );
};
diff --git a/package.json b/package.json
index b8ff7b5..7b8a86a 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/237039
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a2ce5e8d508e04c3aa56d4da130b7c2458805d3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits