Skip to content
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

Add sniff to detect @deprecated tags that are older than 2 major versions. #221

Open
omarreiss opened this issue Aug 12, 2020 · 1 comment

Comments

@omarreiss
Copy link

I'd like to see a WordPress plugin sniff that reads the plugin version and detects functions and classes that have been @deprecated more than 2 major versions ago. Let's also throw an error when @deprecated tags don't contain a parsable version.

@jrfnl
Copy link
Collaborator

jrfnl commented Sep 22, 2023

So, there are basically three issues which we see if we read this ticket:

  1. Flag the use of deprecated WP Core functions and such. That is already handled by WPCS.
  2. Flag functions deprecated in the Yoast plugins (more than x version ago) to be removed. This is the only bit which could (should) be addressed in YoastCS, but would need clear specifications on how to determine what to flag.
  3. Formatting/description check of the @deprecated tags. This should be addressed in a separate Docs standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants