Skip to content

Simplify disabling / enabling of (custom) package managers #10973

@sschuberth

Description

@sschuberth

It would still be breaking, because disabledPackageManagers trumps enabledPackageManagers, so if you want to use Gradle instead of GradleInspector you would always have to overwrite disabledPackageManagers if we set Gradle as default value.

For future improvement I'm thinking if we should just get rid of those two properties altogether and instead add an enabled property to PackageManagerConfiguration which defaults to true if not set, then we could add a default value in the analyzer config like this:

packageManagers:
  Gradle:
    enabled: false

And if you want to use GradleInspector instead, you would have to configure:

packageManagers:
  Gradle:
    enabled: true
  GradleInspector:
    enabled: false

If required, this could also be supported on the command line if we add an implementation of -P like we already have for the reporter.

Originally posted by @mnonnenmacher in #9944 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerAbout the analyzer toolconfigurationAbout configuration topics

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions