src/bin.js
/**
 * Checks whether the specified files in the configuration files are included in any compilation unit or not.
 *
 * @private
 *
 * @param {Array<string>} cliArguments All CLI arguments that are used during the command line invocation for this
 *        script.
 */
Checks whether the specified files in the configuration files are included in any compilation unit or not.
@private

@param {Array} cliArguments All CLI arguments that are used during the command line invocation for this
script.
Checks whether the specified files in the configuration files are included in any compilation unit or not . @private @param { Array } cliArguments All CLI arguments that are used during the command line invocation for this script .
function checkFiles (cliArguments) {
    var parsedCliArgs = {};
    var ccfc = new CCFileCheck(cliArguments);
    ccfc.on('argsParsed', function (parsedArgs) {
        parsedCliArgs.args = parsedArgs;
    });
    ccfc.on('verificationError', function (filePath, configFilePath) {
        errorDetected = true;
        if (!parsedCliArgs.args.ignoreErrors) {
            console.error('The file "' + filePath + '" is not included in any of the compilation units defined in "' +
                          configFilePath + '"!');
        }
        if (parsedCliArgs.args.stopOnError) process.exit(1);
    });
    ccfc.on('error', function (err) {
        errorDetected = true;
        if (!parsedCliArgs.args.ignoreErrors) {
            console.error(err);
        }
        if (parsedCliArgs.args.stopOnError) process.exit(1);
    });
}
function checkFiles ( cliArguments ) { var parsedCliArgs = { } ; var ccfc = new CCFileCheck ( cliArguments ) ; ccfc . on ( 'argsParsed' , function ( parsedArgs ) { parsedCliArgs . args = parsedArgs ; } ) ; ccfc . on ( 'verificationError' , function ( filePath , configFilePath ) { errorDetected = true ; if ( ! parsedCliArgs . args . ignoreErrors ) { console . error ( 'The file "' + filePath + '" is not included in any of the compilation units defined in "' + configFilePath + '"!' ) ; } if ( parsedCliArgs . args . stopOnError ) process . exit ( 1 ) ; } ) ; ccfc . on ( 'error' , function ( err ) { errorDetected = true ; if ( ! parsedCliArgs . args . ignoreErrors ) { console . error ( err ) ; } if ( parsedCliArgs . args . stopOnError ) process . exit ( 1 ) ; } ) ; }
Checks whether the specified files in the configuration files are included in any compilation unit or not.
Checks whether the specified files in the configuration files are included in any compilation unit or not .