Skip to content

Commit 1c9ff9a

Browse files
committed
feat(Analyzer): Add a flag to skip excluded scopes in dependency graph
This flag indicates that dependencies in excluded scopes should not be added to the dependency graph. For large projects, this could reduce the size of the dependency graph and the analysis time significantly. Signed-off-by: Oliver Heger <[email protected]>
1 parent c8739d8 commit 1c9ff9a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

model/src/main/kotlin/config/AnalyzerConfiguration.kt

+9-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,15 @@ data class AnalyzerConfiguration(
4848
* Package manager specific configurations. The key needs to match the name of the package manager class, e.g.
4949
* "NuGet" for the NuGet package manager.
5050
*/
51-
val packageManagers: Map<String, PackageManagerConfiguration>? = null
51+
val packageManagers: Map<String, PackageManagerConfiguration>? = null,
52+
53+
/**
54+
* A flag to control whether excluded scopes should be skipped when constructing the dependency graph. If set to
55+
* true, only the dependencies from non-excluded scopes are added to the dependency graph. This is useful for
56+
* projects with large dependency graphs, for instance Gradle Android projects. By setting this flag to true,
57+
* the size of the graph and the analysis time can be reduced significantly.
58+
*/
59+
val skipExcludedScopesInDependencyGraph: Boolean = false
5260
) {
5361
/**
5462
* A copy of [packageManagers] with case-insensitive keys.

0 commit comments

Comments
 (0)