Sorry if this question has already been asked some...
# detekt
t
Sorry if this question has already been asked somewhere in the past. I was trying to integrate detekt into a legacy project and the number of issues found was way larger than 10. So we adjusted the maxIssues in the config file to a larger number in order for detekt not to fail our CI builds. However, over time, some managed to fix lots of code smells and the number of issues was decreased. When this happened, I had to check manually and updated the maxIssues again so that when others create more code smells, detekt will fail CI builds and notify us accordingly. I want to automate this by writing a small Gradle script to check maxIssues & the number of issues. Is there any sort of callback from the detekt task to let me know such 2 info: maxIssues and the number of issues? Sure I can parse the config file to get maxIssues & parse the whole XML report to count the issues but it’s kinda overhead. Thanks in advance for any help.