@ThreadSafe public class RetireJsAnalyzer extends AbstractFileTypeAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPENDENCY_ECOSYSTEM
A descriptor for the type of dependencies processed or added by this
analyzer.
|
| Constructor and Description |
|---|
RetireJsAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File pathname)
Determines if the file can be analyzed by the analyzer.
|
void |
analyzeDependency(Dependency dependency,
Engine engine)
Analyzes the specified JavaScript file.
|
AnalysisPhase |
getAnalysisPhase()
Returns the phase that the analyzer is intended to run in.
|
protected String |
getAnalyzerEnabledSettingKey()
Returns the key used in the properties file to reference the analyzer's
enabled property.
|
protected FileFilter |
getFileFilter()
Returns the FileFilter.
|
String |
getName()
Returns the name of the analyzer.
|
void |
initialize(Settings settings)
Initializes the analyzer with the configured settings.
|
protected void |
prepareFileTypeAnalyzer(Engine engine)
Prepares the file type analyzer for dependency analysis.
|
getFilesMatched, newHashSet, prepareAnalyzer, setFilesMatchedanalyze, close, closeAnalyzer, getSettings, isEnabled, prepare, setEnabled, supportsParallelProcessingpublic static final String DEPENDENCY_ECOSYSTEM
protected FileFilter getFileFilter()
getFileFilter in class AbstractFileTypeAnalyzerpublic boolean accept(File pathname)
accept in interface FileFilteraccept in class AbstractFileTypeAnalyzerpathname - the path to the filepublic void initialize(Settings settings)
initialize in interface Analyzerinitialize in class AbstractAnalyzersettings - the configured settings to useprotected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
prepareFileTypeAnalyzer in class AbstractFileTypeAnalyzerengine - a reference to the dependency-check engineInitializationException - thrown if there is an exception during
initializationpublic String getName()
public AnalysisPhase getAnalysisPhase()
protected String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey in class AbstractAnalyzerpublic void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency in class AbstractAnalyzerdependency - the dependency to analyze.engine - the engine that is scanning the dependenciesAnalysisException - is thrown if there is an error reading the file
file.Copyright © 2012–2020 OWASP. All rights reserved.