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 metrics to the PSR2.ControlStructures.SwitchDeclaration sniff #1542

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jul 4, 2017

I've explicitely not added metrics for:

  • lowercase keyword as those are already recorded by the Generic.PHP.LowerCaseKeyword sniff
  • break/return not on a line by itself as that is already recorded by the Generic.Formatting.DisallowMultipleStatements sniff

Resolves #1541

Please let me know if there is anything you'd like me to change (phrasing and such).

I've explicitely not added metrics for:
* lowercase keyword as those are already recorded by the `Generic.PHP.LowerCaseKeyword` sniff
* `break`/`return` not on a line by itself as that is already recorded by the `Generic.Formatting.DisallowMultipleStatements` sniff
@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 2, 2023

Closing as replaced by PHPCSStandards/PHP_CodeSniffer#33

@jrfnl jrfnl closed this Dec 2, 2023
PHPCS v3 Development automation moved this from Idea Bank to Ready for Release Dec 2, 2023
@jrfnl jrfnl deleted the feature/3.x-metrics-for-switch-statements branch December 2, 2023 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PHPCS v3 Development
Ready for Release
Development

Successfully merging this pull request may close these issues.

Switch statement metrics
1 participant