Closed Bug 1994217 Opened 11 months ago Closed 11 months ago

Enable ESLint rule jsdoc/no-bad-blocks

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox146 fixed)

RESOLVED FIXED
146 Branch
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.

These seem to cause an issues with automatically fixing JSDoc where it hits a circular cycle of fixes.

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.

This is mainly automatic changes, with some manual fixes to move text off of the first line.

Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0a9a458465ba https://hg.mozilla.org/integration/autoland/rev/f087a7a5ae6d Fix various JSDoc issues that prevent ESLint running correctly. r=frontend-codestyle-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,omc-reviewers,toolkit-telemetry-reviewers,nsharpley,jdescottes,Gijs,mtigley,nchevobbe,emcminn,janerik https://github.com/mozilla-firefox/firefox/commit/1c5b20a293a7 https://hg.mozilla.org/integration/autoland/rev/41d25adcf808 Enable ESLint rule jsdoc/no-bad-blocks. r=frontend-codestyle-reviewers,webdriver-reviewers,credential-management-reviewers,search-reviewers,fxview-reviewers,places-reviewers,whimboo,nsharpley,scunnane,Gijs,mtigley,daisuke https://github.com/mozilla-firefox/firefox/commit/987c3ad13094 https://hg.mozilla.org/integration/autoland/rev/79ea8a727df1 Enable ESLint rule jsdoc/no-bad-blocks on the rest of the tree. r=frontend-codestyle-reviewers,Gijs
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Pushed by nbeleuzu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/89c0ffec7c0a https://hg.mozilla.org/integration/autoland/rev/2980ddd553df Revert "Bug 1994217 - Enable ESLint rule jsdoc/no-bad-blocks on the rest of the tree. r=frontend-codestyle-reviewers,Gijs" for causing Documentation opt failure
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dcb9158c5254 https://hg.mozilla.org/integration/autoland/rev/fa596741af38 Fix various JSDoc issues that prevent ESLint running correctly. r=frontend-codestyle-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,omc-reviewers,toolkit-telemetry-reviewers,nsharpley,jdescottes,Gijs,mtigley,nchevobbe,emcminn,janerik https://github.com/mozilla-firefox/firefox/commit/fde74f7d411e https://hg.mozilla.org/integration/autoland/rev/f231d17d6ee6 Enable ESLint rule jsdoc/no-bad-blocks. r=frontend-codestyle-reviewers,webdriver-reviewers,credential-management-reviewers,search-reviewers,fxview-reviewers,places-reviewers,whimboo,nsharpley,scunnane,Gijs,mtigley,daisuke https://github.com/mozilla-firefox/firefox/commit/dde0952bd6f4 https://hg.mozilla.org/integration/autoland/rev/5eae8d9d60a6 Enable ESLint rule jsdoc/no-bad-blocks on the rest of the tree. r=frontend-codestyle-reviewers,Gijs
Blocks: 1596191
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: