Skip to content

Run detekt with all / different subset of rules? #3681

Answered by schalkms
G00fY2 asked this question in Q&A
Discussion options

You must be logged in to vote

You can define the common rule configuration in one file and the environment-specific configuration in multiple others.
Detekt allows to pass multiple config files as seen here. The suggestion would be to select the passed configuration files depending on the current environment.

--config, -c
      Path to the config file (path/to/config.yml). Multiple configuration 
      files can be specified with ',' or ';' as separator.

Does this help?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by schalkms
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants