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

Disable var camelCaps name check (Squiz.NamingConventions.ValidVariableName.NotCamelCaps) #61

Merged
merged 1 commit into from Feb 3, 2022

Conversation

simPod
Copy link
Contributor

@simPod simPod commented Jan 7, 2022

This rule conflicts with e.g. psalm's UnusedClosureParam, see https://psalm.dev/docs/running_psalm/issues/UnusedClosureParam/

@p4veI
Copy link

p4veI commented Jan 7, 2022

Not really sure what's more important if the psalm check or the cs check 🤷 but I guess I can live without the cs check.

@simPod
Copy link
Contributor Author

simPod commented Jan 7, 2022 via email

@grongor
Copy link
Contributor

grongor commented Jan 13, 2022

I think we should contribute to the sniff - add an option to allow _ names.

@simPod
Copy link
Contributor Author

simPod commented Jan 13, 2022

@grongor I can create an issue to track it. Though not happening anytime soon (In phpcs there's a lot of work around PHP 8.1, e.g. this is still not reviewed squizlabs/PHP_CodeSniffer#3459).

For our v6 this should be excluded (as we do so anyways in projects locally) and we can re-include it later when it does not conflict with SA.

@simPod simPod changed the title Disable var camelCaps name check Disable var camelCaps name check (Squiz.NamingConventions.ValidVariableName.NotCamelCaps) Jan 13, 2022
@simPod simPod merged commit e4f6382 into master Feb 3, 2022
@simPod simPod deleted the var branch February 3, 2022 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants