From 27a5f069395909477f559071bc3cd784894d8e04 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 25 Jul 2023 10:25:25 -0700 Subject: [PATCH] Rules.Idomatic: update switch for new `macro` enumerator The introduction of the `macro` enumerator in the enumeration causes a build break due to an uncovered switch. Conservatively treat the macros as being exempt from the ACLing. --- .../Rules/Idiomatic/ExplicitACLRule.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/SwiftLintBuiltInRules/Rules/Idiomatic/ExplicitACLRule.swift b/Source/SwiftLintBuiltInRules/Rules/Idiomatic/ExplicitACLRule.swift index c7c1bc1353..ee97e8b554 100644 --- a/Source/SwiftLintBuiltInRules/Rules/Idiomatic/ExplicitACLRule.swift +++ b/Source/SwiftLintBuiltInRules/Rules/Idiomatic/ExplicitACLRule.swift @@ -184,7 +184,8 @@ private extension SwiftDeclarationKind { .varGlobal, .varInstance, .varStatic, .typealias, .functionAccessorModify, .functionAccessorRead, .functionConstructor, .functionDestructor, .functionFree, .functionMethodClass, .functionMethodInstance, .functionMethodStatic, .functionOperator, .functionOperatorInfix, - .functionOperatorPostfix, .functionOperatorPrefix, .functionSubscript, .protocol, .opaqueType: + .functionOperatorPostfix, .functionOperatorPrefix, .functionSubscript, .protocol, .opaqueType, + .macro: return true case .actor, .class, .enum, .extension, .extensionClass, .extensionEnum, .extensionProtocol, .extensionStruct, .struct: