Add SwiftLint HARD rules
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
//typealias FontName = String
|
||||
// swiftlint:disable no_grouping_extension
|
||||
|
||||
struct FontName: Hashable {
|
||||
|
||||
@@ -17,10 +17,11 @@ struct FontName: Hashable {
|
||||
}
|
||||
|
||||
extension FontName {
|
||||
|
||||
var fontNameSanitize: String {
|
||||
postscriptName.removeCharacters(from: "[]+-_")
|
||||
}
|
||||
|
||||
|
||||
func getProperty(isStatic: Bool, isSwiftUI: Bool) -> String {
|
||||
if isSwiftUI {
|
||||
if isStatic {
|
||||
|
Reference in New Issue
Block a user