Swiftlint: Rule request: private is preferred over fileprivate

Created on 25 Dec 2016  路  2Comments  路  Source: realm/SwiftLint

Because of Swift 3 migration, lots of declarations wouldn't need to be fileprivate.

rule-request

Most helpful comment

Once SwiftLint has its "compiled" mode we can even do this for internal.

All 2 comments

Once SwiftLint has its "compiled" mode we can even do this for internal.

I'm closing this since #1656 was merged and it finds top level fileprivate declarations, but also has a rule to trigger on all fileprivate usage. This second one will be useful when using Swift 4, since basically it'll make possible to convert all the "acceptable" usages of fileprivate to private.

Was this page helpful?
0 / 5 - 0 ratings