mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 16:49:43 +01:00
added additional checks for false positives (apache maven and cvs:cvs)
Former-commit-id: 19e21385b498ec259d8cc758719fff59503673a5
This commit is contained in:
@@ -273,12 +273,15 @@ public class FalsePositiveAnalyzer extends AbstractAnalyzer {
|
|||||||
if ((i.getValue().matches(".*c\\+\\+.*")
|
if ((i.getValue().matches(".*c\\+\\+.*")
|
||||||
|| i.getValue().startsWith("cpe:/a:jquery:jquery")
|
|| i.getValue().startsWith("cpe:/a:jquery:jquery")
|
||||||
|| i.getValue().startsWith("cpe:/a:prototypejs:prototype")
|
|| i.getValue().startsWith("cpe:/a:prototypejs:prototype")
|
||||||
|| i.getValue().startsWith("cpe:/a:yahoo:yui"))
|
|| i.getValue().startsWith("cpe:/a:yahoo:yui")
|
||||||
|
|| i.getValue().startsWith("cpe:/a:file:file")
|
||||||
|
|| i.getValue().startsWith("cpe:/a:mozilla:mozilla")
|
||||||
|
|| i.getValue().startsWith("cpe:/a:cvs:cvs")
|
||||||
|
|| i.getValue().startsWith("cpe:/a:ssh:ssh"))
|
||||||
&& dependency.getFileName().toLowerCase().endsWith(".jar")) {
|
&& dependency.getFileName().toLowerCase().endsWith(".jar")) {
|
||||||
itr.remove();
|
itr.remove();
|
||||||
} else if (i.getValue().startsWith("cpe:/a:file:file")
|
} else if (i.getValue().startsWith("cpe:/a:apache:maven")
|
||||||
|| i.getValue().startsWith("cpe:/a:mozilla:mozilla")
|
&& !dependency.getFileName().toLowerCase().matches("maven-core-[\\d\\.]+\\.jar")) {
|
||||||
|| i.getValue().startsWith("cpe:/a:ssh:ssh")) {
|
|
||||||
itr.remove();
|
itr.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user