Package org.owasp.dependencycheck.maven
Class ArtifactScopeExcluded
- java.lang.Object
-
- org.owasp.dependencycheck.utils.Filter<java.lang.String>
-
- org.owasp.dependencycheck.maven.ArtifactScopeExcluded
-
public class ArtifactScopeExcluded extends Filter<java.lang.String>
Utility class to determine if an artifact should be excluded.- Author:
- Josh Cain
-
-
Constructor Summary
Constructors Constructor Description ArtifactScopeExcluded(boolean skipTestScope, boolean skipProvidedScope, boolean skipSystemScope, boolean skipRuntimeScope)
Constructs a new ArtifactScopeExcluded object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
passes(java.lang.String scope)
Tests is the artifact should be included in the scan (i.e. is the dependency in a scope that is being scanned).
-
-
-
Constructor Detail
-
ArtifactScopeExcluded
public ArtifactScopeExcluded(boolean skipTestScope, boolean skipProvidedScope, boolean skipSystemScope, boolean skipRuntimeScope)
Constructs a new ArtifactScopeExcluded object.- Parameters:
skipTestScope
- whether or not to skip the test scopeskipProvidedScope
- whether or not to skip the provided scopeskipSystemScope
- whether or not to skip the system scopeskipRuntimeScope
- whether or not to skip the runtime scope
-
-