Search in sources :

Example 1 with ScanProgressListener

use of com.cflint.listeners.ScanProgressListener in project CFLint by cflint.

the class CFLint method fireStartedProcessing.

protected void fireStartedProcessing(final String srcidentifier) {
    cfmlParser = new CFMLParser();
    cfmlParser.setErrorReporter(this);
    currentFile = srcidentifier;
    currentElement = null;
    for (final CFLintStructureListener structurePlugin : getStructureListeners(extensions)) {
        try {
            structurePlugin.startFile(srcidentifier, bugs);
        } catch (final Exception e) {
            printException(e);
            fireCFLintException(e, PARSE_ERROR, srcidentifier, null, null, null, null);
        }
    }
    for (final ScanProgressListener p : scanProgressListeners) {
        p.startedProcessing(srcidentifier);
    }
}
Also used : CFMLParser(cfml.parsing.CFMLParser) ScanProgressListener(com.cflint.listeners.ScanProgressListener) CFLintStructureListener(com.cflint.plugins.CFLintStructureListener) RecognitionException(org.antlr.runtime.RecognitionException) ParseException(cfml.parsing.reporting.ParseException) IOException(java.io.IOException)

Aggregations

CFMLParser (cfml.parsing.CFMLParser)1 ParseException (cfml.parsing.reporting.ParseException)1 ScanProgressListener (com.cflint.listeners.ScanProgressListener)1 CFLintStructureListener (com.cflint.plugins.CFLintStructureListener)1 IOException (java.io.IOException)1 RecognitionException (org.antlr.runtime.RecognitionException)1