mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
// OK
|
||||
|
||||
/\0/;
|
||||
// NOT OK
|
||||
/\1/;
|
||||
// OK
|
||||
/\1/; // $ Alert
|
||||
|
||||
/^(\s+)\w+\1$/;
|
||||
// NOT OK
|
||||
/^(?:\s+)\w+\1$/;
|
||||
// OK
|
||||
/^(?:\s+)\w+\1$/; // $ Alert
|
||||
|
||||
/[\1]/;
|
||||
// OK
|
||||
|
||||
/^(?<ws>\s+)\w+\1$/;
|
||||
/^(?<ws>\s+)\w+\k<ws>$/;
|
||||
// NOT OK
|
||||
/^(?<ws>\s+)\w+\2$/;
|
||||
/^(?<ws>\s+)\w+\2$/; // $ Alert
|
||||
/^(?<ws>\s+)\w+\k<whitespace>$/;
|
||||
|
||||
Reference in New Issue
Block a user