FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/javascript/ql/src/JSDoc/BadParamTag.qhelp at codeql-cli/v2.19.1 · github/codeql · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10k
Code
Issues
997
Pull requests
467
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
javascript
/
ql
/
src
/
JSDoc
/
BadParamTag.qhelp
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (28 loc) · 943 Bytes
Breadcrumbs
codeql
/
javascript
/
ql
/
src
/
JSDoc
/
BadParamTag.qhelp
Copy path
File metadata and controls
38 lines (28 loc) · 943 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!
DOCTYPE
qhelp
PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<
qhelp
>
<
overview
>
<
p
>
JSDoc comments for functions and constructors should use the <
code
>@param</
code
> tag to describe the available
parameters. Each <
code
>@param</
code
> tag should include both the name of the documented parameter and a
description of its meaning and use. A missing name or description makes the tag much less useful and may
indicate badly maintained code.
</
p
>
</
overview
>
<
recommendation
>
<
p
>
Add the missing items to the <
code
>@param</
code
> tag.
</
p
>
</
recommendation
>
<
example
>
<
p
>
In the following example, the constructor <
code
>Message</
code
> has a JSDoc comment containing two
<
code
>@param</
code
> tags for its two parameters, both of which are missing descriptions.
</
p
>
<
sample
src
=
"
examples/BadParamTag.js
"
/>
</
example
>
<
references
>
<
li
>Use JSDoc: <
a
href
=
"
http://usejsdoc.org/tags-param.html
"
>The @param tag</
a
>.</
li
>
</
references
>
</
qhelp
>
Back
|
FazBrowse Home
|
New Git URL