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

Remove CSS and JS tokenizers + related sniffs #2448

Closed
gsherwood opened this issue Mar 19, 2019 · 4 comments
Closed

Remove CSS and JS tokenizers + related sniffs #2448

gsherwood opened this issue Mar 19, 2019 · 4 comments

Comments

@gsherwood
Copy link
Member

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.

@gsherwood gsherwood added this to the 4.0.0 milestone Mar 19, 2019
@gsherwood gsherwood added this to Backlog in PHPCS v4 Development via automation Mar 19, 2019
@seriquynh
Copy link

seriquynh commented Mar 19, 2019

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.

@GaryJones
Copy link
Contributor

Is there a ballpark date for when 4.0.0 is expected to drop? Months? Years?

@gsherwood
Copy link
Member Author

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.

This was referenced Dec 27, 2019
@gsherwood gsherwood moved this from Backlog to Selected for Development in PHPCS v4 Development Jan 31, 2020
@gsherwood
Copy link
Member Author

I've now removed the tokenizers + all non-PHP checks inside sniffs + all JS/CSS test files + changed the ---extensions CLI arg to not allow passing a tokenizer.

PHPCS v4 Development automation moved this from Selected for Development to Ready for Release Jan 31, 2020
jrfnl added a commit to PHPCSStandards/PHP_CodeSniffer that referenced this issue Jan 15, 2024
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.
jrfnl added a commit to PHPCSStandards/PHP_CodeSniffer that referenced this issue Jan 19, 2024
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.
GaryJones added a commit to Automattic/VIP-Coding-Standards that referenced this issue Feb 16, 2024
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.
DannyvdSluijs pushed a commit to DannyvdSluijs/PHP_CodeSniffer_Continuation that referenced this issue Apr 29, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PHPCS v4 Development
  
Ready for Release
Development

No branches or pull requests

3 participants