Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply SwiftLint on BPKCommon #1704

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Backpack-Common/BPKCommonBundle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
* limitations under the License.
*/

import Foundation
import Foundation

@objc
public class BPKCommonBundle: NSObject {
@objc
public static var iconsBundle: Bundle {
@objc public static var iconsBundle: Bundle {
guard
let url = Bundle(for: BPKCommonBundle.self).resourceURL?.appendingPathComponent("Icons.bundle"),
let bundle = Bundle(url: url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public class BPKAutoMirrorIconNames: NSObject {
"trend--will-rise",
"trend"
]
}
}
1 change: 1 addition & 0 deletions Example/.swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ excluded:
included:
- ../Backpack
- ../Backpack-SwiftUI
- ../Backpack-Common
- ./

custom_rules:
Expand Down
2 changes: 1 addition & 1 deletion templates/BPKAutoMirrorIconNames.njk
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public class BPKAutoMirrorIconNames: NSObject {
@objc public static let items = [
"{{iconNames | join('",\n "') | safe}}"
]
}
}
Loading