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

Minor linter issue #177

Open
zipymonkey opened this issue Sep 24, 2024 · 1 comment
Open

Minor linter issue #177

zipymonkey opened this issue Sep 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zipymonkey
Copy link
Collaborator

Really minor bug.

--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Render\Element.
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------
@zipymonkey zipymonkey added the bug Something isn't working label Sep 24, 2024
zipymonkey added a commit that referenced this issue Sep 24, 2024
@zipymonkey
Copy link
Collaborator Author

The sort order seems correct as it is but the following throws an error.

use Drupal\block\Entity\Block;
use Drupal\Core\Render\Element;
use Drupal\Core\Template\Attribute;

Changing the order as follows "fixes" the error.

use Drupal\Core\Render\Element;
use Drupal\Core\Template\Attribute;
use Drupal\block\Entity\Block;

The last drupal/coder release does make some changes to spellchecker so maybe that is related? Going to punt this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant