Integrate SonarQube with your AI agent, scan for secrets and dependency risks, and explore and manage issues—all from the command line.
Start using SonarQube CLI
SonarQube raises this as code smell
The validate function of this module
requires to return either false or custom error message.
Doing this is flagged as an error in Sonar
Return same type of value.
Need to mark this as false positive.
Example
If(someCondition)
{Return true
}
Return ‘Please satisfy the condition’