Uh oh!
There was an error while loading. Please reload this page.
doc: add new documentation lint rule - #18726
Conversation
There was a problem hiding this comment.
Hm, these two changes look somewhat weird but I can imagine that the new rule will otherwise complain about it even though it should not?
BridgeAR
commented
Feb 12, 2018
It would be great to ignore the changelog file but I guess it is not that bad if we don't. What do others think? Besides that I am a bis surprised that the md files in docs are not linted. They are files that contain lines above 80 characters e.g. @watilde is it possible to ignore files somehow? |
BridgeAR
commented
Feb 12, 2018
BridgeAR
commented
Feb 12, 2018
@estrada9166 seems like the linter will now properly complain about the rest of the entries above 80 characters. Can you please also fix those? See https://ci.nodejs.org/job/node-test-linter/16080/console. Those errors should also come up when executing |
estrada9166
commented
Feb 12, 2018
@BridgeAR Sure thing! fixing right now! |
@estrada9166 - thanks for stepping up and making a PR :) @nodejs/collaborators - is everyone OK with an 80 character limit in our docs? Personally I'm -0 on it. Making sure there are no strong objections since this is a style rule. |
apapirovski
commented
Feb 12, 2018
In theory I'm in favour of it but I would like some clarity re: the long URLs. Is the change highlighted by @BridgeAR above necessary? If so, that makes me look less favourably on introducing this rule without first fixing it upstream to be a bit smarter. |
BridgeAR
commented
Feb 12, 2018
@benjamingr we already try to uphold that limit in the docs. Just manually and that fails some times. Therefore the request to add the rule. |
BridgeAR
commented
Feb 12, 2018
@apapirovski long URLs should definitely not cause issues. In case we have issues with those, I would suggest we fix it upstream and then get this in. @watilde do you know if there is an option for things like that? Otherwise, would you be so kind and implement such an option or give a short hint where to work on to get it fixed upstream? |
@BridgeAR I just updated |
BridgeAR
commented
Feb 12, 2018
@estrada9166 as I pointed out, it would be good if we find a way to exclude those. So thanks a lot for the work you already did! |
evanlucas
commented
Feb 12, 2018
I'm -1 to including changelogs for this. |
estrada9166
commented
Feb 12, 2018
I'll contine searching how we can ignore them, because when I add them to |
BridgeAR
commented
Feb 12, 2018
@wooorm would you be so kind and take a look / give advice? |
apapirovski
commented
Feb 12, 2018
It doesn't seem like remark supports stacking multiple |
wooorm
commented
Feb 12, 2018
Ignoring: you can either go with globs to files (
Well, config files can be JS, and can link to other configs, so you can do: // .remarkrc{"plugins": ["remark-lint-something","./some-other-file"]}...and // ./some-other-file.jsexports.plugins=[require('remark-lint-something-else')] |
wooorm
commented
Feb 12, 2018
P.S. feel free to ask specific questions, I’d love to help, but I am also a bit swamped with a course (on node 🎉) I’m currently giving! |
Thanks @wooorm. Due to how everything is structured within Node.js repo, it seems the file within Specifying simply |
mcollina
left a comment
There was a problem hiding this comment.
I'm -1 to this change (I'm making this explicit with the big red cross).
I see too many changes in our changelog, which I would prefer if this didn't touch.
I think this change could impact backporting doc changes too
Can we pick up a number that reflects the current situation (or causes less changes)?
We could pick the limit based on the max line length we have in the changelog.
BridgeAR
commented
Feb 12, 2018
@mcollina read the above discussion ;-) |
@BridgeAR My solution to exclude the Excluding them on |
BridgeAR
commented
Feb 13, 2018
I think that is a pretty elegant and easy solution! In this case it is great because it is much faster than having to upstream a change first. Just one more thing: I think it would also be good to exclude the |
estrada9166
commented
Feb 23, 2018
@BridgeAR Done! |
BridgeAR
commented
Feb 23, 2018
Add 80 characters limit to docs. Change docs to fit 80 characters per row. PR-URL: nodejs#18726Fixes: nodejs#18703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
BridgeAR
commented
Feb 23, 2018
Landed in a29089d @estrada9166 congratulations on your first commit to Node.js 🎉 |
estrada9166
commented
Feb 23, 2018
Thank you so much to all of you!! 🎉 |
MylesBorins
commented
Mar 6, 2018
Should this be backported to |
Add 80 characters limit to docs. Change docs to fit 80 characters per row. Backport-PR-URL: #19189 PR-URL: #18726Fixes: #18703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Add 80 characters limit to docs. Change docs to fit 80 characters per row. PR-URL: nodejs#18726Fixes: nodejs#18703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Add 80 characters limit to docs. Change docs to fit 80 characters per row. Backport-PR-URL: #19189 PR-URL: #18726Fixes: #18703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Add 80 characters limit to docs. Change docs to fit 80 characters per row. PR-URL: nodejs#18726Fixes: nodejs#18703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Add 80 characters limit to docs. Change docs to fit 80 characters per row. PR-URL: nodejs#18726Fixes: nodejs#18703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
MylesBorins
commented
Aug 7, 2018
Should this be backported to |


Add 80 characters limit to docs.
Change docs to fit 80 characters per row.
Fix broken links in Changelog.md
Fixes: #18703
Refs: remarkjs/remark-lint#82
Also I had to change manually the documentation for tools/icu
the documentation is not clear to ignore files and with
.remarkignoreit shows an error
The docs must be changed in order to follow the commit guidelines.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
Doc, Tools