When alert, confirm and prompt are defined as functions, SonarQube doesn’t recognize they are functions rather than debug statements.
- SonarQube 7.3, sonar-scanner-3.2.0.1227-linux scanning JavaScript
confirm({
title: 'Close account',
message: Lang.get(
'account.profile.disableUser Are you sure you want to disable your account?',
),
confirm: 'Disable user',
danger: true,
keyword: Meteor.user().username,
}).then(({ confirmed }) => {