example/plugin.js
function(scope) {
        console.log(
            'Before start to process input files:',
            scope.files.map(function(file) {
                var rulesCount = file.parsed.rules.length;

                rulesCount += ' rule' + (rulesCount > 1 ? 's' : '');

                return '\n' + rulesCount + ' in ' + file.config.input;
            }).join(',')
        );
    }
function(scope) {
        console.log(
            'Before start to process input files:',
            scope.files.map(function(file) {
                var rulesCount = file.parsed.rules.length;

                rulesCount += ' rule' + (rulesCount > 1 ? 's' : '');

                return '\n' + rulesCount + ' in ' + file.config.input;
            }).join(',')
        );
    }
function ( scope ) { console . log ( 'Before start to process input files:' , scope . files . map ( function ( file ) { var rulesCount = file . parsed . rules . length ; rulesCount += ' rule' + ( rulesCount > 1 ? 's' : '' ) ; return '\n' + rulesCount + ' in ' + file . config . input ; } ) . join ( ',' ) ) ; }
Will be called before start to process input files
@param {Object} scope
@param {File[]} scope.files Parsed input files
Will be called before start to process input files