use eslint-plugin-jsdoc in Thunderbird code (like bug 1510561)
Categories
(Thunderbird :: General, enhancement)
Tracking
(thunderbird_esr128 wontfix)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr128 | --- | wontfix |
People
(Reporter: mkmelin, Assigned: mkmelin)
References
Details
(Keywords: helpwanted)
Attachments
(3 files, 1 obsolete file)
+++ This bug was initially created as a clone of Bug #1510561 +++
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/bafa5ef68e1a
use eslint-plugin-jsdoc in mailnews/test/. r=aleca
| Assignee | ||
Comment 3•3 years ago
|
||
Plenty of work left to do here. If other people as well want to take on fixing up chunks of the code base that would be great.
How? Take some suitable size directory, add/change the .eslint.rc file like https://hg.mozilla.org/comm-central/diff/bafa5ef68e1ab977f5ba3f1180e7698a512099bb/mailnews/test/resources/.eslintrc.js#l1.8. Then run ../mach eslint --fix <dir> and go through the errors adjusting/adding type documentation for the functions. It's not hard, but pretty tedious work...
| Assignee | ||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Ah nice, thanks for the heads up and info.
Should we share this in a couple of our mailing lists? Like tb-developers?
| Assignee | ||
Comment 5•3 years ago
|
||
Yep, I'll send out a call and see if we could get someone interested.
| Assignee | ||
Comment 6•3 years ago
|
||
This is the automatic fixes + whitespace fixup:
find . -type f -not -path "./suite/" -name ".js" -exec sed -i -E 's/* @returns +/* @returns /g' {} ;
find . -type f -not -path "./suite/" -name ".jsm" -exec sed -i -E 's/* @returns +/* @returns /g' {} ;
find . -type f -not -path "./suite/" -name ".js" -exec sed -i -E 's/* (@returns {.+}) +/* \1 /g' {} ;
find . -type f -not -path "./suite/" -name ".jsm" -exec sed -i -E 's/* (@returns {.+}) +/* \1 /g' {} ;
find . -type f -not -path "./suite/" -name ".js" -exec sed -i -E 's/*( @param)( \S+ \S+ ) +/\1\2- /g' {} ;
find . -type f -not -path "./suite/" -name ".jsm" -exec sed -i -E 's/*( @param)( \S+ \S+ ) +/\1\2- /g' {} ;
find . -type f -not -path "./suite/" -name ".js" -exec sed -i -E 's/*( @param[^-])( - - )/\1 - /g' {} ;
find . -type f -not -path "./suite/" -name ".jsm" -exec sed -i -E 's/*( @param[^-])( - - )/\1 - /g' {} ;
Comment 10•3 years ago
|
||
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
Comment 13•3 years ago
|
||
Comment 14•3 years ago
|
||
Comment 15•3 years ago
|
||
Comment 16•3 years ago
|
||
Comment 17•2 years ago
|
||
Comment 18•2 years ago
|
||
Comment 19•2 years ago
|
||
Comment 20•2 years ago
|
||
Comment 21•2 years ago
|
||
Comment 22•2 years ago
|
||
Comment 23•2 years ago
|
||
Comment 24•2 years ago
|
||
Comment 25•2 years ago
|
||
Comment 26•2 years ago
|
||
Comment 27•2 years ago
|
||
Comment 28•2 years ago
|
||
Comment 29•2 years ago
|
||
Comment 30•2 years ago
|
||
Comment 31•2 years ago
|
||
Comment 32•2 years ago
|
||
Comment 33•2 years ago
|
||
Comment 34•2 years ago
|
||
Comment 35•2 years ago
|
||
Comment 36•2 years ago
|
||
Comment 37•2 years ago
|
||
Comment 38•2 years ago
|
||
Comment 39•2 years ago
|
||
Comment 40•2 years ago
|
||
Comment 41•2 years ago
|
||
Comment 42•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 43•2 years ago
|
||
Pushed by daniel@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/5aabddb56705
Fix all known JSDoc syntax errors in calendar/base/. r=mkmelin
Comment 44•2 years ago
|
||
Comment 45•2 years ago
|
||
Comment 46•2 years ago
|
||
Comment 47•2 years ago
|
||
Comment 48•2 years ago
|
||
Comment 49•2 years ago
|
||
Comment 50•2 years ago
|
||
Comment 51•2 years ago
|
||
Comment 52•2 years ago
|
||
Comment 53•2 years ago
|
||
Comment 54•2 years ago
|
||
Comment 55•2 years ago
|
||
Comment 56•2 years ago
|
||
Comment 57•2 years ago
|
||
Comment 58•2 years ago
|
||
Comment 59•2 years ago
|
||
Comment 60•2 years ago
|
||
Comment 61•2 years ago
|
||
Comment 62•2 years ago
|
||
Comment 63•1 year ago
|
||
Comment 64•1 year ago
|
||
Comment 65•1 year ago
|
||
Comment 66•1 year ago
|
||
Comment 67•1 year ago
|
||
Comment 68•1 year ago
|
||
Comment 69•1 year ago
|
||
Comment 70•1 year ago
|
||
Comment 71•1 year ago
|
||
Comment 72•1 year ago
|
||
Comment 73•1 year ago
|
||
Comment 74•1 year ago
|
||
Comment 75•1 year ago
|
||
Comment 76•1 year ago
|
||
Comment 77•1 year ago
|
||
Comment 78•1 year ago
|
||
Comment 79•1 year ago
|
||
Comment 80•1 year ago
|
||
Comment 81•1 year ago
|
||
Comment 82•1 year ago
|
||
Comment 83•1 year ago
|
||
Comment 84•1 year ago
|
||
Comment 85•1 year ago
|
||
Comment 86•1 year ago
|
||
Comment 87•1 year ago
|
||
Comment 88•1 year ago
|
||
Comment 89•1 year ago
|
||
Comment 90•1 year ago
|
||
Comment 91•1 year ago
|
||
Comment 92•1 year ago
|
||
Comment 93•1 year ago
|
||
| Assignee | ||
Comment 94•1 year ago
|
||
I think we're done \o/
Of course, lots of the jsdocs could be improved etc. but that will be for another bug.
Comment 95•1 year ago
|
||
Parts affecting In-App Notifications were uplifted to ESR 128 in bug 1936307.
Description
•