public class GolangModAnalyzer extends AbstractFileTypeAnalyzer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEPENDENCY_ECOSYSTEM
A descriptor for the type of dependencies processed or added by this
analyzer.
|
static java.lang.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 java.lang.String |
getAnalyzerEnabledSettingKey()
Returns the key name for the analyzers enabled setting.
|
protected java.io.FileFilter |
getFileFilter()
Returns the FileFilter
|
java.lang.String |
getName()
Returns the name of the Golang Mode Analyzer.
|
protected void |
prepareFileTypeAnalyzer(Engine engine)
Initialize the go mod analyzer; ensures that go is installed and can be
called.
|
accept, getFilesMatched, newHashSet, prepareAnalyzer, setFilesMatched
analyze, close, closeAnalyzer, getSettings, initialize, isEnabled, prepare, setEnabled, supportsParallelProcessing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
analyze, close, initialize, isEnabled, prepare, supportsParallelProcessing
public static final java.lang.String DEPENDENCY_ECOSYSTEM
public static final java.lang.String GO_MOD
public java.lang.String getName()
public AnalysisPhase getAnalysisPhase()
protected java.lang.String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey
in class AbstractAnalyzer
protected java.io.FileFilter getFileFilter()
getFileFilter
in class AbstractFileTypeAnalyzer
protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
prepareFileTypeAnalyzer
in class AbstractFileTypeAnalyzer
engine
- a reference to the dependency-check engineInitializationException
- never thrownprotected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency
in class AbstractAnalyzer
dependency
- the dependency being analyzedengine
- the engine being used to perform the scanAnalysisException
- thrown if there is an unrecoverable error
analyzing the dependencyCopyright© 2012-21 Jeremy Long. All Rights Reserved.