Enable ESLint rule jsdoc/no-bad-blocks
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox146 fixed)
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
I spotted that eslint-plugin-jsdoc has a no-bad-blocks rule. This will catch issues where the first line of a comment has only one (or more than two) asterisk, and has @ included in it:
/*
* @param foo
*/
There's some examples across the tree where we clearly should be jsdoc, but we haven't marked it correctly, so it isn't being picked up correctly by the relevant tools. Hence, I think we should enable this everywhere.
| Assignee | ||
Comment 1•11 months ago
|
||
These seem to cause an issues with automatically fixing JSDoc where it hits a circular cycle of fixes.
| Assignee | ||
Comment 2•11 months ago
|
||
Mainly manual fixes to fix issues found in the jsdoc comments now that they're recognised correctly.
Also removes some configuration that is no longer needed as it is now the default.
| Assignee | ||
Comment 3•11 months ago
|
||
This is mainly automatic changes, with some manual fixes to move text off of the first line.
Comment 5•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f087a7a5ae6d
https://hg.mozilla.org/mozilla-central/rev/41d25adcf808
https://hg.mozilla.org/mozilla-central/rev/79ea8a727df1
Comment 7•11 months ago
|
||
Backed out for causing Documentation opt failure
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/2980ddd553dff774d89e82275d6a2172ae2dd062
Log link: https://treeherder.mozilla.org/logviewer?job_id=531704209&repo=autoland&task=eaFHPdriTaOpYXLvNlyN5Q.0&lineNumber=2695
Updated•11 months ago
|
| Assignee | ||
Updated•11 months ago
|
https://hg.mozilla.org/mozilla-central/rev/fa596741af38
https://hg.mozilla.org/mozilla-central/rev/f231d17d6ee6
https://hg.mozilla.org/mozilla-central/rev/5eae8d9d60a6
Description
•