-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Bug Description
In the process of upgrading SwiftLint to the latest version, prior to the rewrite of the sorted_imports rule the following passed:
Example 1
BEFORE
public import SharedDomain
@_private(sourceFile: "GeneratedStringsSymbols_BrandA.swift")
import StringsBrandA
import SwiftUIAFTER
@_private(sourceFile: "GeneratedStringsSymbols_BrandA.swift")
import StringsBrandA
public import SharedDomain
import SwiftUIExample 2
BEFORE
public import A
public import C
import B
import DAFTER
public import A
import B
public import C
import DI'm unsure if this is intentional or not, if yes, maybe a configuration could be added?
Mention the command or other SwiftLint integration method that caused the issue. Include stack traces or command output.
$ swiftlint lint --fixEnvironment
- SwiftLint version (run
swiftlint versionto be sure) 0.62.2 - Xcode version (run
xcodebuild -versionto be sure) 26.1.1 - Installation method used (Homebrew, CocoaPods, building from source, etc) SwiftPM Binary Target
- Configuration file:
sorted_imports:
grouping: attributes
opt_in_rules:
- sorted_importsAre you using nested configurations? No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels