It's unfortunately a bit hidden in the docs.
https://arturbosch.github.io/detekt/extensions.html
Note: As of version 1.2.0 detekt now verifies if all configured properties actually exist in a configuration created by
--generate-config
. This means that by default detekt does not know about your new properties. Therefore we need to mention them in the configuration under `config>excludes`: