I have a project in spring-boot
java and on doing the sonarqube analysis of the code, javadoc errors are not detected.
The issue occurs during maven release when there is an error in javadoc
the release build fails to build the javadoc
jars and the release is interrupted.
/**
* Method to calculate the sum.
*
* @param numberOne
* First number.
* @param numberTwo
* Second number.
* @return sum of numbers.
*/
public void sumCalculate(int numOne, int numTwo) {
// code here
}
In the above code, the parameter names given in javadoc with @param
are different from the actual one and the @return
statement is not actually required. But sonar qube doesnot report any of these issues in the analysis.
Kindly guide me how to solve this? Is there any custom rule to be made?
Thanks