public class GolangModAnalyzer 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.
|
static String |
GO_MOD
Lock file name.
|
| Constructor and Description |
|---|
GolangModAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyzeDependency(Dependency dependency,
Engine engine)
Analyzes go packages and adds evidence to the dependency.
|
AnalysisPhase |
getAnalysisPhase()
Tell that we are used for information collection.
|
protected String |
getAnalyzerEnabledSettingKey()
Returns the key name for the analyzers enabled setting.
|
protected FileFilter |
getFileFilter()
Returns the FileFilter
|
String |
getName()
Returns the name of the Golang Mode Analyzer.
|
protected void |
prepareFileTypeAnalyzer(Engine engine)
No-op initializer implementation.
|
accept, getFilesMatched, newHashSet, prepareAnalyzer, setFilesMatchedanalyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanalyze, close, initialize, isEnabled, prepare, supportsParallelProcessingpublic static final String DEPENDENCY_ECOSYSTEM
public static final String GO_MOD
public String getName()
public AnalysisPhase getAnalysisPhase()
protected String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey in class AbstractAnalyzerprotected FileFilter getFileFilter()
getFileFilter in class AbstractFileTypeAnalyzerprotected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
prepareFileTypeAnalyzer in class AbstractFileTypeAnalyzerengine - a reference to the dependency-check engineInitializationException - never thrownprotected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency in class AbstractAnalyzerdependency - the dependency being analyzedengine - the engine being used to perform the scanAnalysisException - thrown if there is an unrecoverable error
analyzing the dependencyCopyright © 2012–2020 OWASP. All rights reserved.