Hi,
SonarQube v7.7
Is there any way to check whether the method makes call to service class or implementation class?
eg: repository.findall()
I have to check whether findall() is defined and called to service class or it is calling directly the implementation class.
Michael
(Michael Gumowski)
October 21, 2019, 1:37pm
2
Hello,
No, SonarJava is not able to follow which implementation class is going to be used at runtime. Therefore and as of today, it’s not possible to write a rule which would identify such calls.
Regards,
Michael
Okay… Thanks…
and I didn’t get any response for the below query. Could you please he me in the same.
Hi,
Sonarqube v7.7
I am trying to develop one custom rule, for that i want to get all the method names declared inside a class and need to validate those names.
eg:
class A{
method A(){}
method B(){}
}
I have get all method names at a time instead of iterating each time.
Is there any way to get all method names?
Regards,
Anurag