tasks/i18n_linter.js
function report(items, heading) {
            grunt.log.subhead(heading);
            if (items.length > 0) {
                grunt.log.error(grunt.log.wordlist(items, {separator: '\n'}));
            } else {
                grunt.log.ok();
            }
        }
function report(items, heading) {
            grunt.log.subhead(heading);
            if (items.length > 0) {
                grunt.log.error(grunt.log.wordlist(items, {separator: '\n'}));
            } else {
                grunt.log.ok();
            }
        }
function report ( items , heading ) { grunt . log . subhead ( heading ) ; if ( items . length > 0 ) { grunt . log . error ( grunt . log . wordlist ( items , { separator : '\n' } ) ) ; } else { grunt . log . ok ( ) ; } }
Report the status of items
@param {Array} items If empty its successful
@param {String} success Success message
@param {String} error Error message
Report the status of items