Custom Rules are not working

Hi @saberduck

In My Custom Rule I am doing one validation using variableTree mentioned below,

  1. variableTree.symbol().type().toString().equalsIgnoreCase(“HttpSession”) .

When I run the sonar-scanner I am not able to see any issues reported in the dashboard. But when I run the mvn sonar:sonar I am able to observe the issues in the dashboard.

  1. When I use variableTree.type().toString().equalsIgnoreCase(“HttpSession”) I am able to see the issues for sonar-scanner itself.

Both Validations are correct and populating the same output.

I don’t know what was the difference between those two validations. It will be helpful if I get any explanation regarding this.