https://kotlinlang.org logo
#detekt
Title
# detekt
v

Venkat , Bangalore , India

05/27/2020, 8:52 PM
Hi All, I could see a difference between gradle-detekt-plugin (1.9.1) and detekt-sonar-plugin(2.0.0) reported issues... with same config yml file.. also anyone please tell me when can we expect detekt-sonar plugin will be updated based on 1.9.1?
v

Venkat , Bangalore , India

06/01/2020, 4:29 AM
thanks for the update @schalkms 👍
a

Artur Bosch

06/01/2020, 8:12 PM
I will request the addition to the marketplace tomorrow, expect it soon.
v

Venkat , Bangalore , India

06/02/2020, 4:47 AM
cool. thanks for the update @Artur Bosch
@Artur Bosch is it possible to add detekt config file in sonarqube itself . that way, we wanted to ensure that the team does not change yml file by adding exclusions just to fake results 🙂.
a

Artur Bosch

06/11/2020, 10:45 AM
Yes, in the configuration of a project (only Admin) you can specify the config and baseline files. Best.
v

Venkat , Bangalore , India

06/11/2020, 10:46 AM
@Artur Bosch thanks for your reply. I think as an admin i can only specify the Path of the config/baseline files.. correct? not the content to keep in server side
a

Artur Bosch

06/11/2020, 10:56 AM
Yes, that's right. That's the easiest way to stay in sync with the project config isnt't it?
v

Venkat , Bangalore , India

06/11/2020, 10:57 AM
ok, yep thats true .. was actually looking is there a to paste that config file in server side itself
as long as developers are passionate enough to follow on local machines,, its good..
some times, yeah ppl skip it
a

Artur Bosch

06/11/2020, 10:58 AM
But pasting the config content for sonarqube only users would be still quite interesting. Never thought of it actually.
Feel free to open a feature request on the sonar-detekt side
v

Venkat , Bangalore , India

06/11/2020, 10:59 AM
yeah thanks
Also @Artur Bosch is there a ticket (new Rule) in your roadmap to enforce D in SOLID..
making sure that "the constructor params are interfaces/abstract classes" of high level class
a

Artur Bosch

06/11/2020, 11:09 AM
No such rule yet. Maybe you want to tackle such a rule ?
v

Venkat , Bangalore , India

06/11/2020, 11:13 AM
yeah.. we wanted to enforce to follow SOLID strictly .. m just exploring writing a detekt custom rule..
thats fine @Artur Bosch m really in love with Detekt .. awesome plugin 👍
👍 1
s

schalkms

06/11/2020, 8:12 PM
Thanks for the kind words! 🙂 Regarding the SOLID principles I have written numerous posts. https://github.com/detekt/detekt/issues/1381 https://github.com/detekt/detekt/issues/2437
👍 1
13 Views