You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a specific import class to have some code that for some reason Swift doesn't find when normally importing the package. So I do:
import InspireAPI
import class InspireAPI.Response
This will obviously throw a duplicate_imports warning and will be fixed when running swiftlint --fix.
So I added this:
import InspireAPI
// swiftlint:disable all
import class InspireAPI.Response
// swiftlint:enable all
Or
import InspireAPI
// swiftlint:disable:next duplicate_imports
import class InspireAPI.Response
Yet the import class still gets removed when running swiftlint --fix :(
EDIT:
Hm apparently when doing something like this it works:
// swiftlint:disable all
import Apples
import BlaBla
import Combine
import InspireAPI
import class InspireAPI.Response
import Foundation
// swiftlint:enable all
The text was updated successfully, but these errors were encountered:
New Issue Checklist
I need a specific import class to have some code that for some reason Swift doesn't find when normally importing the package. So I do:
This will obviously throw a duplicate_imports warning and will be fixed when running swiftlint --fix.
So I added this:
Or
Yet the import class still gets removed when running swiftlint --fix :(
EDIT:
Hm apparently when doing something like this it works:
The text was updated successfully, but these errors were encountered: