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
{{ message }}
Repository navigation
unused_import not taking into account @_exported declarations. #2877
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
Activity
jpsim commentedon Dec 18, 2019
Fixed in #2993.