Uh oh!
There was an error while loading. Please reload this page.
doc: lint deprecation codes - #33433
Conversation
Uh oh!
There was an error while loading. Please reload this page.
richardlau
commented
May 16, 2020
Is it possible to implement this as a lint rule as opposed to a new tool and test? |
aduh95
commented
May 16, 2020
@richardlau Do you have an example I can follow on how to implement that? I'm not familiar with markdown linters (yet 😅). |
Ah wait that is a js lint rule. I think the custom markdown lint rules are external to this repo. Cc @Trott |
BridgeAR
commented
May 18, 2020
@richardlau we could lint that all deprecation codes adhere to a specific format in |
Add a rule to make sure deprecation codes are in order.
288f0e1 to
ca5f40fCompareaduh95
commented
May 29, 2020
That would cover runtime deprecation only right? |
b593a56 to
e9139b6Compare8ae28ff to
2935f72Comparenodejs-github-bot
commented
Jul 3, 2020
Trott
commented
Jul 4, 2020
They are in https://github.com/nodejs/remark-preset-lint-node. |
aduh95
commented
Oct 16, 2020
Do we still want to do that? Every now and then a new PR appears to replace I personally don't get why we use a placeholder, because if a new deprecation lands before the one on the PR, the author still has to fix the git conflict, so the placeholder doesn't help there. If someone thinks it's still a valid idea, I'm willing to work on it, otherwise let's close this. |
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
Trott
commented
Oct 17, 2020
In theory at least, one thing the placeholder gets us is prevention of duplicate DEP codes landing and nobody noticing. |
Add a rule to make sure deprecation codes are in order. This is to discourage the use of placeholders by contributors when creating new deprecations, and to relieve authors the responsibility to swap them with the appropriate code on landing.
Suggested by @targos in #33430 (comment).
Blocked by #33430.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes