Sonarqube validating methods from other JAVA files

Asked

Viewed 34 times

1

I am developing a sonarqube rule, but I find myself with the following problem: If a method of one class calls another method, I want to validate if the so-called method exists, but I only have access to the methods of my current class, and often this method which has been called lies in another class

class Connection:
public void metodo_1(){
   metodo_novo();
}
class Arquivos:
public void metodo_novo(){
}

in the example above, my method would be wrong, because, the method is in another class, but the sonar can not see this, because it validates by classes, which solution I could take?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.