mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-28 11:52:15 +01:00
added missed configuration options for new analyzers
This commit is contained in:
@@ -164,6 +164,47 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
|||||||
@Parameter(property = "archiveAnalyzerEnabled", required = false)
|
@Parameter(property = "archiveAnalyzerEnabled", required = false)
|
||||||
private Boolean archiveAnalyzerEnabled;
|
private Boolean archiveAnalyzerEnabled;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the Python Distribution Analyzer will be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "pyDistributionAnalyzerEnabled", required = false)
|
||||||
|
private Boolean pyDistributionAnalyzerEnabled;
|
||||||
|
/**
|
||||||
|
* Sets whether the Python Package Analyzer will be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "pyPackageAnalyzerEnabled", required = false)
|
||||||
|
private Boolean pyPackageAnalyzerEnabled;
|
||||||
|
/**
|
||||||
|
* Sets whether the Ruby Gemspec Analyzer will be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "rubygemsAnalyzerEnabled", required = false)
|
||||||
|
private Boolean rubygemsAnalyzerEnabled;
|
||||||
|
/**
|
||||||
|
* Sets whether or not the openssl Analyzer should be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "opensslAnalyzerEnabled", required = false)
|
||||||
|
private Boolean opensslAnalyzerEnabled;
|
||||||
|
/**
|
||||||
|
* Sets whether or not the CMake Analyzer should be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "cmakeAnalyzerEnabled", required = false)
|
||||||
|
private Boolean cmakeAnalyzerEnabled;
|
||||||
|
/**
|
||||||
|
* Sets whether or not the autoconf Analyzer should be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "autoconfAnalyzerEnabled", required = false)
|
||||||
|
private Boolean autoconfAnalyzerEnabled;
|
||||||
|
/**
|
||||||
|
* Sets whether or not the PHP Composer Lock File Analyzer should be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "composerAnalyzerEnabled", required = false)
|
||||||
|
private Boolean composerAnalyzerEnabled;
|
||||||
|
/**
|
||||||
|
* Sets whether or not the Node.js Analyzer should be used.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "nodeAnalyzerEnabled", required = false)
|
||||||
|
private Boolean nodeAnalyzerEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not the .NET Assembly Analyzer is enabled.
|
* Whether or not the .NET Assembly Analyzer is enabled.
|
||||||
*/
|
*/
|
||||||
@@ -624,6 +665,15 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
|||||||
Settings.setStringIfNotEmpty(Settings.KEYS.ADDITIONAL_ZIP_EXTENSIONS, zipExtensions);
|
Settings.setStringIfNotEmpty(Settings.KEYS.ADDITIONAL_ZIP_EXTENSIONS, zipExtensions);
|
||||||
Settings.setStringIfNotEmpty(Settings.KEYS.ANALYZER_ASSEMBLY_MONO_PATH, pathToMono);
|
Settings.setStringIfNotEmpty(Settings.KEYS.ANALYZER_ASSEMBLY_MONO_PATH, pathToMono);
|
||||||
|
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_PYTHON_DISTRIBUTION_ENABLED, pyDistributionAnalyzerEnabled);
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_PYTHON_PACKAGE_ENABLED, pyPackageAnalyzerEnabled);
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_RUBY_GEMSPEC_ENABLED, rubygemsAnalyzerEnabled);
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_OPENSSL_ENABLED, opensslAnalyzerEnabled);
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_CMAKE_ENABLED, cmakeAnalyzerEnabled);
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_AUTOCONF_ENABLED, autoconfAnalyzerEnabled);
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_COMPOSER_LOCK_ENABLED, composerAnalyzerEnabled);
|
||||||
|
Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_NODE_PACKAGE_ENABLED, nodeAnalyzerEnabled);
|
||||||
|
|
||||||
//Database configuration
|
//Database configuration
|
||||||
Settings.setStringIfNotEmpty(Settings.KEYS.DB_DRIVER_NAME, databaseDriverName);
|
Settings.setStringIfNotEmpty(Settings.KEYS.DB_DRIVER_NAME, databaseDriverName);
|
||||||
Settings.setStringIfNotEmpty(Settings.KEYS.DB_DRIVER_PATH, databaseDriverPath);
|
Settings.setStringIfNotEmpty(Settings.KEYS.DB_DRIVER_PATH, databaseDriverPath);
|
||||||
@@ -638,6 +688,7 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
|||||||
Settings.setStringIfNotEmpty(Settings.KEYS.CVE_SCHEMA_1_2, cveUrl12Base);
|
Settings.setStringIfNotEmpty(Settings.KEYS.CVE_SCHEMA_1_2, cveUrl12Base);
|
||||||
Settings.setStringIfNotEmpty(Settings.KEYS.CVE_SCHEMA_2_0, cveUrl20Base);
|
Settings.setStringIfNotEmpty(Settings.KEYS.CVE_SCHEMA_2_0, cveUrl20Base);
|
||||||
Settings.setIntIfNotNull(Settings.KEYS.CVE_CHECK_VALID_FOR_HOURS, cveValidForHours);
|
Settings.setIntIfNotNull(Settings.KEYS.CVE_CHECK_VALID_FOR_HOURS, cveValidForHours);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ types that they support are detected - so specifically disabling them may not
|
|||||||
be needed.
|
be needed.
|
||||||
|
|
||||||
Property | Description | Default Value
|
Property | Description | Default Value
|
||||||
------------------------|---------------------------------------------------------------------------|------------------
|
------------------------------|---------------------------------------------------------------------------|------------------
|
||||||
archiveAnalyzerEnabled | Sets whether the Archive Analyzer will be used. | true
|
archiveAnalyzerEnabled | Sets whether the Archive Analyzer will be used. | true
|
||||||
zipExtensions | A comma-separated list of additional file extensions to be treated like a ZIP file, the contents will be extracted and analyzed. |
|
zipExtensions | A comma-separated list of additional file extensions to be treated like a ZIP file, the contents will be extracted and analyzed. |
|
||||||
jarAnalyzer | Sets whether Jar Analyzer will be used. | true
|
jarAnalyzer | Sets whether Jar Analyzer will be used. | true
|
||||||
@@ -43,6 +43,14 @@ centralAnalyzerEnabled | Sets whether Central Analyzer will be used. If this an
|
|||||||
nexusAnalyzerEnabled | Sets whether Nexus Analyzer will be used. This analyzer is superceded by the Central Analyzer; however, you can configure this to run against a Nexus Pro installation. | true
|
nexusAnalyzerEnabled | Sets whether Nexus Analyzer will be used. This analyzer is superceded by the Central Analyzer; however, you can configure this to run against a Nexus Pro installation. | true
|
||||||
nexusUrl | Defines the Nexus Server's web service end point (example http://domain.enterprise/service/local/). If not set the Nexus Analyzer will be disabled. |
|
nexusUrl | Defines the Nexus Server's web service end point (example http://domain.enterprise/service/local/). If not set the Nexus Analyzer will be disabled. |
|
||||||
nexusUsesProxy | Whether or not the defined proxy should be used when connecting to Nexus. | true
|
nexusUsesProxy | Whether or not the defined proxy should be used when connecting to Nexus. | true
|
||||||
|
pyDistributionAnalyzerEnabled | Sets whether the Python Distribution Analyzer will be used. | true
|
||||||
|
pyPackageAnalyzerEnabled | Sets whether the Python Package Analyzer will be used. | true
|
||||||
|
rubygemsAnalyzerEnabled | Sets whether the Ruby Gemspec Analyzer will be used. | true
|
||||||
|
opensslAnalyzerEnabled | Sets whether or not the openssl Analyzer should be used. | true
|
||||||
|
cmakeAnalyzerEnabled | Sets whether or not the CMake Analyzer should be used. | true
|
||||||
|
autoconfAnalyzerEnabled | Sets whether or not the autoconf Analyzer should be used. | true
|
||||||
|
composerAnalyzerEnabled | Sets whether or not the PHP Composer Lock File Analyzer should be used. | true
|
||||||
|
nodeAnalyzerEnabled | Sets whether or not the Node.js Analyzer should be used. | true
|
||||||
nuspecAnalyzerEnabled | Sets whether or not the .NET Nuget Nuspec Analyzer will be used. | true
|
nuspecAnalyzerEnabled | Sets whether or not the .NET Nuget Nuspec Analyzer will be used. | true
|
||||||
assemblyAnalyzerEnabled | Sets whether or not the .NET Assembly Analyzer should be used. | true
|
assemblyAnalyzerEnabled | Sets whether or not the .NET Assembly Analyzer should be used. | true
|
||||||
pathToMono | The path to Mono for .NET assembly analysis on non-windows systems. |
|
pathToMono | The path to Mono for .NET assembly analysis on non-windows systems. |
|
||||||
|
|||||||
Reference in New Issue
Block a user