The logic is split and executes different code paths for `detekt` and `detekt_test` making maintenance difficult. This logic should be unified.
The logic is split and executes different code paths for
detektanddetekt_testmaking maintenance difficult. This logic should be unified.