SonarTS
SonarTS copied to clipboard
FP no-commented-code: "tslint:disable" comments
I want to report a bug.
TSLint version: 5.12.1 TSLint-SonarTS version: 1.9.0
Reproducer
// tslint:disable:no-identical-functions
// tslint:disable:no-duplicate-string
The no-commented-code
TSLint rule thinks this is commented code.
This seems to be an issue of the TSLint rule only and not the normal Sonar rule.
@xxluke thanks for reporting that! Good catch
Same problem here. Any news?
Workarounds are to add an empty line between the comments
// tslint:disable:no-identical-functions
// tslint:disable:no-duplicate-string
or to disable both rules in one line
// tslint:disable:no-identical-functions no-duplicate-string