Classifying Eslint Errors

Is it possible to change how sonar is classifying eslint output?

Things like console.log's are being classified as bugs, instead of code smells, which reduces our “reliability rating”, which then fails the quality gate.

eslint shows it as a warning, and not an error, so I don’t know why it would be shown as a bug in sonarcloud.

1 Like


Indeed we classified it as BUG as it’s part of ‘Possible Errors’ on ESLint page

We agree it’s not really a bug. I will change its type in our mapping (it’s here)

If you find any other inconsistencies feel free to open a PR changing the mapping.

P.S. You can report to ESLint that no-console should not be in Possible Errors category.