mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-25 10:32:00 +01:00
patch to remove additional false positives due to SCM entries in the pom
Former-commit-id: 6101fae1b5957254ddbece5afc2db8edeb7bf9b8
This commit is contained in:
@@ -138,7 +138,8 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
"include-resource",
|
"include-resource",
|
||||||
"embed-dependency",
|
"embed-dependency",
|
||||||
"ipojo-components",
|
"ipojo-components",
|
||||||
"ipojo-extension");
|
"ipojo-extension",
|
||||||
|
"eclipse-sourcereferences");
|
||||||
/**
|
/**
|
||||||
* item in some manifest, should be considered medium confidence.
|
* item in some manifest, should be considered medium confidence.
|
||||||
*/
|
*/
|
||||||
@@ -764,6 +765,7 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
&& !key.endsWith("class-path")
|
&& !key.endsWith("class-path")
|
||||||
&& !key.endsWith("-scm") //todo change this to a regex?
|
&& !key.endsWith("-scm") //todo change this to a regex?
|
||||||
&& !key.startsWith("scm-")
|
&& !key.startsWith("scm-")
|
||||||
|
&& !value.trim().startsWith("scm:")
|
||||||
&& !isImportPackage(key, value)
|
&& !isImportPackage(key, value)
|
||||||
&& !isPackage(key, value)) {
|
&& !isPackage(key, value)) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user