Sonarqube validating methods from other JAVA files

0

I am developing a rule in sonarqube, but I encounter the following problem: If a method of a class calls another method, I want to validate if the called method exists, however, I only have access to the methods of my current class, and often this method that was called is in another class

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

In the example above, my rule would give error, because the method is in another class, but the sonar can not see this, because it validates by classes, what solution could I take?     

asked by anonymous 21.02.2018 / 16:40

0 answers