Is there a way to share configuration files? #4997
-
(I'm using Detekt on Gradle) I have two simple requirements:
Best would be if the yml file can be used from URL, or maybe even from inside a Gradle Plugin JAR file. Any solutions, hacks are appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can set a list of configuration files. If the first one is your default configuration you will get the desired behavior. About support URL or more complex ways of provide the config file we don't plan to support it. You can create your own gradle task to get the configuration file from anywhere and then feed it to the gradle task as a path. |
Beta Was this translation helpful? Give feedback.
-
An example of simple implementation - https://medium.com/@alex.hrindii/how-to-share-and-publish-detekt-config-14e816d6c8ae |
Beta Was this translation helpful? Give feedback.
You can set a list of configuration files. If the first one is your default configuration you will get the desired behavior.
About support URL or more complex ways of provide the config file we don't plan to support it. You can create your own gradle task to get the configuration file from anywhere and then feed it to the gradle task as a path.