forked from pinterest/ktlint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When running format mode, the rules are first executed in parallel to…
… find linting errors. In this process, no unused import are found because the trailing comma is not yet added to variable "bar3". Then in the next stage the rules are run consecutively. Nof the trailing comma rule is adding a trailing comma after the type of variable "bar3". When the no-unused-import rule runs after the trailing-comma rule, it was incorrectly seen as part of the type of variable "bar3" and a reference "EnumThree," (with the trailing comma was added) which in turn resulted in not recognizing that the import of EnumThree actually was used. Closes pinterest#1367
- Loading branch information
Paul Dingemans
committed
Feb 14, 2022
1 parent
f7b9996
commit 61e678d
Showing
2 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters