-
I'm working on a fork of a project that uses Detekt in its build system. I don't want to rip out Detekt, but I do want to exclude certain files or directories from being processed by Detekt (because these files are stub files that I need to add to the project to make it build without some libraries it expects, and they aren't real code, and therefore don't need e.g. doc comments). It looks like in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
You can put an If you're using the CLI you can use the |
Beta Was this translation helpful? Give feedback.
You can put an
excludes
at the ruleset level inside the config file. So you won't have to copy it over to every rule.If you're using the CLI you can use the
--excludes
parameter to exclude certain paths.If you're using the Gradle Plugin, similarly you can configure the
source
andexcludes
for the Detekt tasks