We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d900c3d commit 9830133Copy full SHA for 9830133
python/ql/src/analysis/AlertSuppression.ql
@@ -72,7 +72,7 @@ class LgtmSuppressionComment extends LineSuppressionComment {
72
* A noqa suppression comment. Both pylint and pyflakes respect this, so lgtm ought to too.
73
*/
74
class NoqaSuppressionComment extends LineSuppressionComment {
75
- NoqaSuppressionComment() { this.getContents().toLowerCase().regexpMatch("\\s*noqa\\s*") }
+ NoqaSuppressionComment() { this.getContents().toLowerCase().regexpMatch("\\s*noqa([^:].*)?") }
76
77
override string getAnnotation() { result = "lgtm" }
78
}
0 commit comments