Skip to content

Commit

Permalink
feat(Analyzer): Add a flag to skip excluded scopes in dependency graph
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
oheger-bosch committed Jan 27, 2023
1 parent c8739d8 commit 1c9ff9a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion model/src/main/kotlin/config/AnalyzerConfiguration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ data class AnalyzerConfiguration(
* Package manager specific configurations. The key needs to match the name of the package manager class, e.g.
* "NuGet" for the NuGet package manager.
*/
val packageManagers: Map<String, PackageManagerConfiguration>? = null
val packageManagers: Map<String, PackageManagerConfiguration>? = null,

/**
* A flag to control whether excluded scopes should be skipped when constructing the dependency graph. If set to
* true, only the dependencies from non-excluded scopes are added to the dependency graph. This is useful for
* projects with large dependency graphs, for instance Gradle Android projects. By setting this flag to true,
* the size of the graph and the analysis time can be reduced significantly.
*/
val skipExcludedScopesInDependencyGraph: Boolean = false
) {
/**
* A copy of [packageManagers] with case-insensitive keys.
Expand Down

0 comments on commit 1c9ff9a

Please sign in to comment.