public class CFLint extends Object implements cfml.parsing.reporting.IErrorReporter
| Constructor and Description |
|---|
CFLint() |
CFLint(CFLintConfig configFile) |
CFLint(CFLintScanner... bugsScanners) |
CFLint(ConfigRuntime configuration,
CFLintScanner... bugsScanners)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionListener(CFLintExceptionListener exceptionListener) |
void |
addScanProgressListener(ScanProgressListener scanProgressListener) |
protected boolean |
checkExtension(File file) |
protected void |
fireCFLintException(Exception e,
String messageCode,
String filename,
Integer line,
Integer column,
String functionName,
String expression) |
protected void |
fireClose() |
protected void |
fireFinishedProcessing(String srcidentifier) |
protected void |
fireStartedProcessing(String srcidentifier) |
List<String> |
getAllowedExtensions() |
BugList |
getBugs() |
void |
process(String src,
String filename) |
void |
processStack(List<net.htmlparser.jericho.Element> elements,
String space,
Context context) |
void |
processStack(List<net.htmlparser.jericho.Element> elements,
String space,
String filename,
cfml.parsing.cfscript.CFIdentifier functionName) |
void |
reportAmbiguity(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
org.antlr.v4.runtime.atn.ATNConfigSet configs) |
void |
reportAttemptingFullContext(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
org.antlr.v4.runtime.atn.ATNConfigSet configs) |
void |
reportContextSensitivity(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
int prediction,
org.antlr.v4.runtime.atn.ATNConfigSet configs) |
void |
reportError(org.antlr.runtime.IntStream arg0,
org.antlr.runtime.RecognitionException arg1,
org.antlr.runtime.BitSet arg2) |
void |
reportError(org.antlr.v4.runtime.IntStream input,
org.antlr.v4.runtime.RecognitionException re,
org.antlr.runtime.BitSet follow) |
void |
reportError(org.antlr.runtime.RecognitionException arg0) |
void |
reportError(org.antlr.v4.runtime.RecognitionException re) |
void |
reportError(String arg0) |
void |
reportError(String[] arg0,
org.antlr.runtime.RecognitionException arg1) |
void |
reportError(String[] tokenNames,
org.antlr.v4.runtime.RecognitionException re) |
protected void |
reportRule(net.htmlparser.jericho.Element elem,
Object expression,
Context context,
CFLintScanner plugin,
Context.ContextMessage msg) |
protected void |
reportRule(net.htmlparser.jericho.Element elem,
Object expression,
Context context,
CFLintScanner plugin,
String msg) |
void |
scan(File folderOrFile) |
void |
scan(String folder) |
void |
setAllowedExtensions(List<String> allowedExtensions) |
void |
setLogError(boolean logError) |
void |
setProgressUsesThread(boolean progressUsesThread) |
void |
setQuiet(boolean quiet) |
void |
setShowProgress(boolean showProgress) |
void |
setVerbose(boolean verbose) |
String |
stripLineComments(String cfscript) |
void |
syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e) |
public CFLint()
public CFLint(CFLintConfig configFile)
public CFLint(CFLintScanner... bugsScanners)
@Deprecated public CFLint(ConfigRuntime configuration, CFLintScanner... bugsScanners)
public void scan(String folder)
public void scan(File folderOrFile)
protected boolean checkExtension(File file)
public void process(String src, String filename) throws cfml.parsing.reporting.ParseException, IOException
cfml.parsing.reporting.ParseExceptionIOExceptionpublic void processStack(List<net.htmlparser.jericho.Element> elements, String space, String filename, cfml.parsing.cfscript.CFIdentifier functionName) throws cfml.parsing.reporting.ParseException, IOException
cfml.parsing.reporting.ParseExceptionIOExceptionpublic void processStack(List<net.htmlparser.jericho.Element> elements, String space, Context context) throws cfml.parsing.reporting.ParseException, IOException
cfml.parsing.reporting.ParseExceptionIOExceptionprotected void reportRule(net.htmlparser.jericho.Element elem,
Object expression,
Context context,
CFLintScanner plugin,
String msg)
protected void reportRule(net.htmlparser.jericho.Element elem,
Object expression,
Context context,
CFLintScanner plugin,
Context.ContextMessage msg)
public BugList getBugs()
public void reportError(String arg0)
reportError in interface cfml.parsing.reporting.IErrorReporterpublic void reportError(org.antlr.runtime.RecognitionException arg0)
public void reportError(String[] arg0, org.antlr.runtime.RecognitionException arg1)
public void reportError(org.antlr.runtime.IntStream arg0,
org.antlr.runtime.RecognitionException arg1,
org.antlr.runtime.BitSet arg2)
public void setVerbose(boolean verbose)
public void setLogError(boolean logError)
public void setQuiet(boolean quiet)
public void addScanProgressListener(ScanProgressListener scanProgressListener)
protected void fireStartedProcessing(String srcidentifier)
protected void fireFinishedProcessing(String srcidentifier)
protected void fireClose()
public void addExceptionListener(CFLintExceptionListener exceptionListener)
protected void fireCFLintException(Exception e, String messageCode, String filename, Integer line, Integer column, String functionName, String expression)
public void setShowProgress(boolean showProgress)
public void setProgressUsesThread(boolean progressUsesThread)
public void syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e)
syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListenerpublic void reportAmbiguity(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
org.antlr.v4.runtime.atn.ATNConfigSet configs)
reportAmbiguity in interface org.antlr.v4.runtime.ANTLRErrorListenerpublic void reportAttemptingFullContext(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
org.antlr.v4.runtime.atn.ATNConfigSet configs)
reportAttemptingFullContext in interface org.antlr.v4.runtime.ANTLRErrorListenerpublic void reportContextSensitivity(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
int prediction,
org.antlr.v4.runtime.atn.ATNConfigSet configs)
reportContextSensitivity in interface org.antlr.v4.runtime.ANTLRErrorListenerpublic void reportError(org.antlr.v4.runtime.RecognitionException re)
reportError in interface cfml.parsing.reporting.IErrorReporterpublic void reportError(String[] tokenNames, org.antlr.v4.runtime.RecognitionException re)
reportError in interface cfml.parsing.reporting.IErrorReporterpublic void reportError(org.antlr.v4.runtime.IntStream input,
org.antlr.v4.runtime.RecognitionException re,
org.antlr.runtime.BitSet follow)
reportError in interface cfml.parsing.reporting.IErrorReporterCopyright © 2013–2015 CFLint. All rights reserved.