Swift Alamofire 构建错误标识符名称违规

Swift Alamofire building error Identifier Name Violation

正在尝试构建 Alamofire,但在此函数中出现错误 Identifier Name Violation: Variable name should start with a lowercase character: 'W' (identifier_name)

var readableDescription: String {
        let W = isCellular ? "W" : "-"
        let R = isReachable ? "R" : "-"
        let c = isConnectionRequired ? "c" : "-"
        let t = contains(.transientConnection) ? "t" : "-"
        let i = contains(.interventionRequired) ? "i" : "-"
        let C = contains(.connectionOnTraffic) ? "C" : "-"
        let D = contains(.connectionOnDemand) ? "D" : "-"
        let l = contains(.isLocalAddress) ? "l" : "-"
        let d = contains(.isDirect) ? "d" : "-"
        let a = contains(.connectionAutomatic) ? "a" : "-"

        return "\(W)\(R) \(c)\(t)\(i)\(C)\(D)\(l)\(d)\(a)"
    }

名字中很少有这个错误Type Name Violation: Type name should only contain alphanumeric characters: '_URLEncodedFormEncoder' (type_name)final class _URLEncodedFormEncoder

也许我在项目中禁用了某些东西?在我没有看到这个错误之前

您通常希望忽略格式化和列表工具中的依赖项。要为 SwiftLint 这样做,请将您的依赖项目录添加到您的 SwiftLint 排除列表中。例如,如果您使用的是 CocoaPods:

excluded: # paths to ignore during linting. Takes precedence over `included`.
   - Pods