Detekt vs Sonar

Sonar identifies code smells same as what we can define in Detekt’s formatting section.
If that is correct, do we need to set up both Sonar and Detekt or it will produce duplicated report?
In another word, what is the difference between SonarLint and Detekt?


Welcome to the community!

Maybe this will help: