grunt-banana-checker
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -61,2 +61,11 @@ /*! | ||
} | ||
}, | ||
skipIncompleteMessageDocumentation: { | ||
src: 'test/skipIncompleteMessageDocumentation', | ||
options: { | ||
skipIncompleteMessageDocumentation: [ | ||
'third-message-key', | ||
'fourth-message-key' | ||
] | ||
} | ||
} | ||
@@ -63,0 +72,0 @@ }, |
{ | ||
"name": "grunt-banana-checker", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "A grunt checker for the \"banana\" JSON i18n system provided by MediaWiki and jquery.i18n", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -25,3 +25,5 @@ /*! | ||
requireCompleteTranslationLanguages: [], | ||
requireCompleteTranslationMessages: [] | ||
requireCompleteTranslationMessages: [], | ||
skipIncompleteMessageDocumentation: [] | ||
} ), | ||
@@ -162,2 +164,6 @@ messageCount = 0; | ||
if ( options.requireCompleteMessageDocumentation ) { | ||
// Filter out any missing message that is OK to be skipped | ||
sourceMessageMissing = sourceMessageMissing.filter( function ( value ) { | ||
return options.skipIncompleteMessageDocumentation.indexOf( value ) === -1; | ||
} ); | ||
count = sourceMessageMissing.length; | ||
@@ -164,0 +170,0 @@ if ( count > 0 ) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24720
30
504