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
Running the analyzer with the unused_import rule enabled sometimes wrongfully deletes an import if the imported Module contains a @_exported declaration.
Consider the following example :
/// Module A
@_exported import B
/// Module B
public class MyBClass {}
/// Module C
import A
let bClass = MyBClass()
Running the analyzer would currently remove the import A declaration from Module C, leading to a compile error.
Environment
SwiftLint version (run swiftlint version to be sure)?
0.35.0
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Downloaded binary from the github release page
New Issue Checklist
Describe the bug
Running the analyzer with the
unused_import
rule enabled sometimes wrongfully deletes an import if the imported Module contains a@_exported
declaration.Consider the following example :
Running the analyzer would currently remove the
import A
declaration from Module C, leading to a compile error.Environment
SwiftLint version (run
swiftlint version
to be sure)?0.35.0
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Downloaded binary from the github release page
Paste your configuration file:
Are you using nested configurations?
No
Which Xcode version are you using (check
xcode-select -p
)?10.3
The text was updated successfully, but these errors were encountered: