mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +01:00
pmd/checkstyle/findbugs corrections
This commit is contained in:
@@ -175,10 +175,13 @@ public class PythonPackageAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
final String parentName = parent.getName();
|
final String parentName = parent.getName();
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
if (INIT_PY_FILTER.accept(file)) {
|
if (INIT_PY_FILTER.accept(file)) {
|
||||||
for (final File sourceFile : parent.listFiles(PY_FILTER)) {
|
final File[] fileList = parent.listFiles(PY_FILTER);
|
||||||
|
if (fileList != null) {
|
||||||
|
for (final File sourceFile : fileList) {
|
||||||
found |= analyzeFileContents(dependency, sourceFile);
|
found |= analyzeFileContents(dependency, sourceFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (found) {
|
if (found) {
|
||||||
dependency.setDisplayFileName(parentName + "/__init__.py");
|
dependency.setDisplayFileName(parentName + "/__init__.py");
|
||||||
dependency.getProductEvidence().addEvidence(file.getName(),
|
dependency.getProductEvidence().addEvidence(file.getName(),
|
||||||
|
|||||||
Reference in New Issue
Block a user