-
Notifications
You must be signed in to change notification settings - Fork 49
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
refactor(FullyQualifiedNamespace): Replace sniff in favor of a sniff from Slevomat #199
base: 8.3.x
Are you sure you want to change the base?
Conversation
You've probably realised this, but the failing tests for standards is because the new file
The patterns above seem to exclude nearly all files in the tests/good/ folder but not everything. Am I right in thinking that all files in the tests/good folder should follow Drupal standards, and hence they are excluded because Coder uses a different customised set for it's own files? If so, we could exclude everything from tests/good in one statement, rather than try to cater for most files over the three patterns. Sorry if this is wrong, I've not looked in great detail at what is not excluded from the above three. |
Yep, this is not ready for review yet, was just uploading my work in progress here. |
Sorry, yes of course. But I've done some learning in the meantime, I wanted to see if we could exclude everything in |
Created upstream bug report at slevomat/coding-standard#1570 |
That bug was resolved, yay! Now some test fails remain where Slevomat gets confused by multiple use statements, it somehow thinks one is a constant. Not sure if we should simply drop this test case from Coder and not care about it anymore, or if we should try to improve the Slevomat sniff. |
Reported the constant confusion upstream: slevomat/coding-standard#1581 |
Issue: https://www.drupal.org/project/coder/issues/3214374
The goal would be to delete our FullyQualifiedNamespace sniff and switch to using the one from Slevomat.
Was not able to complete this yet because of a bug in Slevomat slevomat/coding-standard#1564