Add the ability to specify a detekt config from a remote artifact
#5,637 opened on 2022/12/25
Repository metrics
- Stars
- (6,942 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
Expected Behavior
I'd like to be able to specify a detekt config from a remote artifact (e.g. maven).
Current Behavior
A detekt config has to be specified from a local file. It is possible to use a remote artifact in some scenarios, but it neither simple nor straightforward.
Context
I manage 30+ projects that use detekt. Whenever there's a detekt update (new rules, updated config, config deprecations, etc...) I have to update the config in all of those projects. It's a very manual, labor intensive task.
If I was able to have a single detekt config file that I publish to a maven repo, it would greatly simplify the process. There would be a one time cost of specifying the maven coordinates for the artifact, and that would be it. Leveraging Maven's versioning makes it even simpler, as I could update the config for a specific repo when I'm ready to. Tools like renovate and dependabot work very well with this since they'll create a PR automatically when I publish an update to the remote config.
If a project needed to change the config, it could simply provide a local config file to overlay the remote one.