@ThreadSafe public class CpeSuppressionAnalyzer extends AbstractSuppressionAnalyzer
This is no longer used as a standalone analyzer; rather this is called by the CPE Analyzer directly. TODO - refactor this class so that is not an 'analyzer'.
The suppression analyzer processes an externally defined XML document that complies with the suppressions.xsd schema. Any identified CPE entries within the dependencies that match will be removed.
SUPPRESSION_OBJECT_KEY| Constructor and Description |
|---|
CpeSuppressionAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyzeDependency(Dependency dependency,
Engine engine)
Analyzes a given dependency.
|
boolean |
filter(SuppressionRule rule)
Determines whether a suppression rule should be retained when filtering a
set of suppression rules for a concrete suppression analyzer.
|
AnalysisPhase |
getAnalysisPhase()
Returns the phase that the analyzer is intended to run in.
|
protected java.lang.String |
getAnalyzerEnabledSettingKey()
Returns the setting key to determine if the analyzer is enabled.
|
java.lang.String |
getName()
Returns the name of the analyzer.
|
getRuleCount, getSupportedExtensions, prepareAnalyzeranalyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessingpublic java.lang.String getName()
public AnalysisPhase getAnalysisPhase()
protected java.lang.String getAnalyzerEnabledSettingKey()
Returns the setting key to determine if the analyzer is enabled.
getAnalyzerEnabledSettingKey in class AbstractAnalyzerpublic boolean filter(SuppressionRule rule)
AbstractSuppressionAnalyzerrule - the suppression rule to evaluatetrue if the rule should be retained; otherwise
falseprotected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
AbstractAnalyzeranalyzeDependency in class AbstractSuppressionAnalyzerdependency - the dependency to analyzeengine - the engine scanningAnalysisException - thrown if there is an analysis exceptionCopyright© 2012-21 Jeremy Long. All Rights Reserved.