Class Excludes
-
- All Implemented Interfaces:
public final class ExcludesDefines which parts of a repository should be excluded.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ExcludesEMPTYprivate final List<PathExclude>pathsprivate final List<ScopeExclude>scopes
-
Constructor Summary
Constructors Constructor Description Excludes(List<PathExclude> paths, List<ScopeExclude> scopes)
-
Method Summary
Modifier and Type Method Description final List<PathExclude>getPaths()Path excludes. final List<ScopeExclude>getScopes()Scopes that will be excluded from all projects. final List<PathExclude>findPathExcludes(String path)Return the PathExcludes matching the provided path. final List<PathExclude>findPathExcludes(Project project, OrtResult ortResult)Return the PathExcludes matching the definitionFilePath. final List<ScopeExclude>findScopeExcludes(String scopeName)Return the ScopeExcludes for the provided scopeName. final BooleanisPathExcluded(String path)True if any path exclude matches path. final BooleanisScopeExcluded(String scopeName)True if the scope with the given scopeName is excluded by this Excludes configuration. -
-
Constructor Detail
-
Excludes
Excludes(List<PathExclude> paths, List<ScopeExclude> scopes)
-
-
Method Detail
-
getPaths
final List<PathExclude> getPaths()
Path excludes.
-
getScopes
final List<ScopeExclude> getScopes()
Scopes that will be excluded from all projects.
-
findPathExcludes
final List<PathExclude> findPathExcludes(String path)
Return the PathExcludes matching the provided path.
-
findPathExcludes
final List<PathExclude> findPathExcludes(Project project, OrtResult ortResult)
Return the PathExcludes matching the definitionFilePath.
-
findScopeExcludes
final List<ScopeExclude> findScopeExcludes(String scopeName)
Return the ScopeExcludes for the provided scopeName.
-
isPathExcluded
final Boolean isPathExcluded(String path)
True if any path exclude matches path.
-
isScopeExcluded
final Boolean isScopeExcluded(String scopeName)
-
-
-
-