The "organize imports" feature, introduced here https://community.devsense.com/d/869-auto-remove-unused-use-lines-on-save/3, sorts wrongly uses with uppercase and lowercase letters, so the phpcs sniffer throws a warning after each save.
Here is an example: how the extension sorts it:
use Drupal\Core\Form\FormState;
use Drupal\Tests\UnitTestCase;
use Drupal\test_helpers\TestHelpers;
use Drupal\tvh_label\Entity\Label;
use Drupal\tvh_label\Form\LabelsImportForm;
use Symfony\Component\HttpFoundation\File\UploadedFile;
And the phpcs warning:
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\test_helpers\TestHelpers.
And phpcbf fixes this by this order:
use Drupal\Core\Form\FormState;
use Drupal\test_helpers\TestHelpers;
use Drupal\Tests\UnitTestCase;
use Drupal\tvh_label\Entity\Label;
use Drupal\tvh_label\Form\LabelsImportForm;
use Symfony\Component\HttpFoundation\File\UploadedFile;
Could you please fix this? Thanks!