Inquirer.js command line validate function

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’

Hey @Diva11

Please read this thread regarding reporting false-positives:

In any case, any user with Administer Issues permissions on a project should be able to mark the issue as a false-positive in the UI.

We dont have admin privileges througout, we need to work on a solution through yaml file in our node ja project… can you please help

How can we exclude this from sonar check altogether