Class RepositoryAnalyzerConfiguration
-
- All Implemented Interfaces:
public final class RepositoryAnalyzerConfigurationAnalyzerConfiguration options that can be configured in the RepositoryConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanallowDynamicVersionsprivate final List<String>enabledPackageManagersprivate final List<String>disabledPackageManagersprivate final Map<String, PackageManagerConfiguration>packageManagersprivate final BooleanskipExcluded
-
Constructor Summary
Constructors Constructor Description RepositoryAnalyzerConfiguration(Boolean allowDynamicVersions, List<String> enabledPackageManagers, List<String> disabledPackageManagers, Map<String, PackageManagerConfiguration> packageManagers, Boolean skipExcluded)
-
Method Summary
Modifier and Type Method Description final BooleangetAllowDynamicVersions()Enable the analysis of projects that use version ranges to declare their dependencies. final List<String>getEnabledPackageManagers()A list of the case-insensitive names of package managers that are enabled. final List<String>getDisabledPackageManagers()A list of the case-insensitive names of package managers that are disabled. final Map<String, PackageManagerConfiguration>getPackageManagers()Package manager specific configurations. final BooleangetSkipExcluded()A flag to control whether excluded scopes and paths should be skipped during the analysis. final PackageManagerConfigurationgetPackageManagerConfiguration(String packageManager)Get a PackageManagerConfiguration from packageManagers. -
-
Method Detail
-
getAllowDynamicVersions
final Boolean getAllowDynamicVersions()
Enable the analysis of projects that use version ranges to declare their dependencies. If set to true, dependencies of exactly the same project might change with another scan done at a later time if any of the (transitive) dependencies are declared using version ranges and a new version of such a dependency was published in the meantime. If set to false, analysis of projects that use version ranges will fail.
If set to null, the global configuration from AnalyzerConfiguration.allowDynamicVersions will be used.
-
getEnabledPackageManagers
final List<String> getEnabledPackageManagers()
A list of the case-insensitive names of package managers that are enabled. Disabling a package manager in disabledPackageManagers overrides enabling it here.
If set to null, the global configuration from AnalyzerConfiguration.enabledPackageManagers will be used.
-
getDisabledPackageManagers
final List<String> getDisabledPackageManagers()
A list of the case-insensitive names of package managers that are disabled. Disabling a package manager in this list overrides enabledPackageManagers.
If set to null, the global configuration from AnalyzerConfiguration.disabledPackageManagers will be used.
-
getPackageManagers
final Map<String, PackageManagerConfiguration> getPackageManagers()
Package manager specific configurations. The key needs to match the name of the package manager class, e.g. "NuGet" for the NuGet package manager.
If set to null, the global configuration from AnalyzerConfiguration.packageManagers will be used.
-
getSkipExcluded
final Boolean getSkipExcluded()
A flag to control whether excluded scopes and paths should be skipped during the analysis.
If set to null, the global configuration from AnalyzerConfiguration.skipExcluded will be used.
-
getPackageManagerConfiguration
final PackageManagerConfiguration getPackageManagerConfiguration(String packageManager)
Get a PackageManagerConfiguration from packageManagers. The difference to accessing the map directly is that packageManager can be case-insensitive.
-
-
-
-