mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-18 07:14:09 +01:00
auto-format changed indentations
Former-commit-id: 1ef56dd84a5167644c2767cefdee54d555175c55
This commit is contained in:
@@ -47,9 +47,8 @@ import org.owasp.dependencycheck.utils.Settings;
|
|||||||
import org.owasp.dependencycheck.utils.UrlStringUtils;
|
import org.owasp.dependencycheck.utils.UrlStringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to analyze a Wheel or egg distriution files, or their contents in
|
* Used to analyze a Wheel or egg distriution files, or their contents in unzipped form, and collect information that can be used
|
||||||
* unzipped form, and collect information that can be used to determine the
|
* to determine the associated CPE.
|
||||||
* associated CPE.
|
|
||||||
*
|
*
|
||||||
* @author Dale Visser <dvisser@ida.org>
|
* @author Dale Visser <dvisser@ida.org>
|
||||||
*/
|
*/
|
||||||
@@ -72,8 +71,7 @@ public class PythonDistributionAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
.getLogger(PythonDistributionAnalyzer.class.getName());
|
.getLogger(PythonDistributionAnalyzer.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The count of directories created during analysis. This is used for
|
* The count of directories created during analysis. This is used for creating temporary directories.
|
||||||
* creating temporary directories.
|
|
||||||
*/
|
*/
|
||||||
private static int dirCount = 0;
|
private static int dirCount = 0;
|
||||||
|
|
||||||
@@ -103,8 +101,7 @@ public class PythonDistributionAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
private File tempFileLocation;
|
private File tempFileLocation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter that detects *.dist-info files (but doesn't verify they are
|
* Filter that detects *.dist-info files (but doesn't verify they are directories.
|
||||||
* directories.
|
|
||||||
*/
|
*/
|
||||||
private static final FilenameFilter DIST_INFO_FILTER = new SuffixFileFilter(
|
private static final FilenameFilter DIST_INFO_FILTER = new SuffixFileFilter(
|
||||||
".dist-info");
|
".dist-info");
|
||||||
@@ -157,8 +154,7 @@ public class PythonDistributionAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the key used in the properties file to reference the analyzer's
|
* Returns the key used in the properties file to reference the analyzer's enabled property.
|
||||||
* enabled property.
|
|
||||||
*
|
*
|
||||||
* @return the analyzer's enabled property setting key
|
* @return the analyzer's enabled property setting key
|
||||||
*/
|
*/
|
||||||
@@ -254,8 +250,7 @@ public class PythonDistributionAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
/**
|
/**
|
||||||
* Gathers evidence from the METADATA file.
|
* Gathers evidence from the METADATA file.
|
||||||
*
|
*
|
||||||
* @param dependency
|
* @param dependency the dependency being analyzed
|
||||||
* the dependency being analyzed
|
|
||||||
* @throws MalformedURLException
|
* @throws MalformedURLException
|
||||||
*/
|
*/
|
||||||
private static void collectWheelMetadata(Dependency dependency, File file)
|
private static void collectWheelMetadata(Dependency dependency, File file)
|
||||||
@@ -318,12 +313,10 @@ public class PythonDistributionAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the next temporary destingation directory for extracting an
|
* Retrieves the next temporary destingation directory for extracting an archive.
|
||||||
* archive.
|
|
||||||
*
|
*
|
||||||
* @return a directory
|
* @return a directory
|
||||||
* @throws AnalysisException
|
* @throws AnalysisException thrown if unable to create temporary directory
|
||||||
* thrown if unable to create temporary directory
|
|
||||||
*/
|
*/
|
||||||
private File getNextTempDirectory() throws AnalysisException {
|
private File getNextTempDirectory() throws AnalysisException {
|
||||||
File directory;
|
File directory;
|
||||||
|
|||||||
Reference in New Issue
Block a user