-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: lint deprecation codes #33433
doc: lint deprecation codes #33433
Conversation
Is it possible to implement this as a lint rule as opposed to a new tool and test? |
@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 |
@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
ca5f40f
Compare
That would cover runtime deprecation only right? |
b593a56
to
e9139b6
Compare
8ae28ff
to
2935f72
Compare
They are in https://github.com/nodejs/remark-preset-lint-node. |
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. |
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