mirror of
https://github.com/github/codeql.git
synced 2026-04-21 23:14:03 +02:00
JS: Allow arbitrary comments in ConsistencyChecking
Because line comments cannot be used inside JSX elements
This commit is contained in:
@@ -46,10 +46,10 @@ deprecated final private class Conf extends string {
|
||||
}
|
||||
|
||||
/**
|
||||
* A line-comment that asserts whether a result exists at that line or not.
|
||||
* A comment that asserts whether a result exists at that line or not.
|
||||
* Can optionally include `[INCONSISTENCY]` to indicate that a consistency issue is expected at the location
|
||||
*/
|
||||
private class AssertionComment extends LineComment {
|
||||
private class AssertionComment extends Comment {
|
||||
boolean shouldHaveAlert;
|
||||
|
||||
AssertionComment() {
|
||||
|
||||
Reference in New Issue
Block a user