-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove CSS and JS tokenizers + related sniffs #2448
Comments
I absolutely agree. The modern software world contains various tools to check CSS and JS styles. PHP_CodeSniffer should focus on the right thing - the PHP programming language. |
Is there a ballpark date for when 4.0.0 is expected to drop? Months? Years? |
It's not years away, but it wont be this year. After 3.5.0 is released (hopefully in a few weeks) I'll get started on a 4.0 branch to begin the changes. Even after 4.0 is release, I'll still support version 3 for a while with bug fixes and critical changes. How long depends on how many there are, but I try not to drop support until the bug reports for an old version basically stop coming in. |
I've now removed the tokenizers + all non-PHP checks inside sniffs + all JS/CSS test files + changed the - |
The deprecation of these sniffs was previously already announced in: * CSS/JS specific sniffs: squizlabs/PHP_CodeSniffer#2448 * MySource standard: squizlabs/PHP_CodeSniffer#2471 This commit _soft_ deprecates these sniffs with a `@deprecated` annotation. This will get a mention in the changelog. Hard deprecation will follow in a future 3.x minor as per 188.
The deprecation of these sniffs was previously already announced in: * CSS/JS specific sniffs: squizlabs/PHP_CodeSniffer#2448 * MySource standard: squizlabs/PHP_CodeSniffer#2471 This commit _soft_ deprecates these sniffs with a `@deprecated` annotation. This will get a mention in the changelog. Hard deprecation will follow in a future 3.x minor as per 188.
CSS/JS tokenizers will be removed for PHPCS 4: squizlabs/PHP_CodeSniffer#2448 This commit _soft_ deprecates these sniffs with a `@deprecated` annotation. They will also get a mention in the changelog. Hard deprecation using the PHPCS 3.9.0 native handling of deprecated sniffs will follow. See #442.
Maintaining these tokenizers takes time, and they are not able to parse modern CSS and JS anyway, so they are pretty much useless. It's time to remove them.
The text was updated successfully, but these errors were encountered: