I am using Sonar / Ant / Maven with a huge number of projects, some of them are Maven based and others Ant based.
The problem is, when I run the Sonar Analysis with Ant, LCOM4 and PTI Metrics are not calculated, however, when run Sonar Analysis with Maven we got this two metrics calculated and showed on Sonar Dashboard.
I have tried with this properties:
<property name="sonar.dynamicAnalysis" value="true" />
<property name="sonar.skipDesign" value="false" />
bot none of them has any impact regarding to those metrics.
I have no exceptions during Sonar Analysis.