mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: mention @type tag in qhelp
This commit is contained in:
@@ -15,6 +15,11 @@ Assigning a variable to itself typically indicates a mistake such as a missing
|
||||
Carefully inspect the assignment to check for misspellings or missing qualifiers.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If the self-assignment is intentional, and is needed for documentation or optimization purposes,
|
||||
add a JSDoc comment with a <tt>@type</tt> tag. This will indicate the self-assignment is intentional.
|
||||
</p>
|
||||
|
||||
</recommendation>
|
||||
<example>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user