@ThreadSafe public class NodeAuditAnalyzer extends AbstractNpmAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_URL
The default URL to the NPM Audit API.
|
static java.lang.String |
DEPENDENCY_ECOSYSTEM
A descriptor for the type of dependencies processed or added by this
analyzer.
|
static java.lang.String |
PACKAGE_LOCK_JSON
The file name to scan.
|
static java.lang.String |
SHRINKWRAP_JSON
The file name to scan.
|
NPM_DEPENDENCY_ECOSYSTEM| Constructor and Description |
|---|
NodeAuditAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyzeDependency(Dependency dependency,
Engine engine)
Analyzes a given dependency.
|
AnalysisPhase |
getAnalysisPhase()
Returns the phase that the analyzer is intended to run in.
|
protected java.lang.String |
getAnalyzerEnabledSettingKey()
Returns the key used in the properties file to determine if the analyzer
is enabled.
|
protected java.io.FileFilter |
getFileFilter()
Returns the FileFilter
|
java.lang.String |
getName()
Returns the name of the analyzer.
|
accept, createDependency, determineVersionFromMap, findDependency, gatherEvidence, getSearcher, prepareFileTypeAnalyzer, processPackage, processPackage, processResults, replaceOrAddVulnerability, shouldProcessgetFilesMatched, 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 java.lang.String DEFAULT_URL
public static final java.lang.String DEPENDENCY_ECOSYSTEM
public static final java.lang.String PACKAGE_LOCK_JSON
public static final java.lang.String SHRINKWRAP_JSON
protected java.io.FileFilter getFileFilter()
getFileFilter in class AbstractFileTypeAnalyzerpublic java.lang.String getName()
public AnalysisPhase getAnalysisPhase()
protected java.lang.String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey in class AbstractAnalyzerprotected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
AbstractAnalyzeranalyzeDependency in class AbstractAnalyzerdependency - the dependency to analyzeengine - the engine scanningAnalysisException - thrown if there is an analysis exceptionCopyright© 2012-21 Jeremy Long. All Rights Reserved.