Search in sources :

Example 1 with CFMLParser

use of cfml.parsing.CFMLParser 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);
            final Context context = new Context(currentFile, currentElement, null, true, null, null);
            final ContextMessage cm = new ContextMessage(PARSE_ERROR, null, null, context.startLine());
            reportRule(currentElement, null, context, null, cm);
        }
    }
    for (final ScanProgressListener p : scanProgressListeners) {
        p.startedProcessing(srcidentifier);
    }
}
Also used : Context(com.cflint.plugins.Context) CFMLParser(cfml.parsing.CFMLParser) ContextMessage(com.cflint.plugins.Context.ContextMessage) ScanProgressListener(com.cflint.listeners.ScanProgressListener) CFLintStructureListener(com.cflint.plugins.CFLintStructureListener) ParseException(cfml.parsing.reporting.ParseException) IOException(java.io.IOException) CFLintScanException(com.cflint.exception.CFLintScanException)

Aggregations

CFMLParser (cfml.parsing.CFMLParser)1 ParseException (cfml.parsing.reporting.ParseException)1 CFLintScanException (com.cflint.exception.CFLintScanException)1 ScanProgressListener (com.cflint.listeners.ScanProgressListener)1 CFLintStructureListener (com.cflint.plugins.CFLintStructureListener)1 Context (com.cflint.plugins.Context)1 ContextMessage (com.cflint.plugins.Context.ContextMessage)1 IOException (java.io.IOException)1