From 28bec96b3e9de8b176fcfff9a302d810bf6508b1 Mon Sep 17 00:00:00 2001 From: Marcelo Fabri Date: Tue, 4 Aug 2020 04:00:36 -0700 Subject: [PATCH] =?UTF-8?q?Remove=20a=20usage=20of=20=E2=80=9Cblacklist?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SwiftLintFramework/Rules/Style/AttributesRule.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SwiftLintFramework/Rules/Style/AttributesRule.swift b/Source/SwiftLintFramework/Rules/Style/AttributesRule.swift index a3a2d02a66..3094eeb3e1 100644 --- a/Source/SwiftLintFramework/Rules/Style/AttributesRule.swift +++ b/Source/SwiftLintFramework/Rules/Style/AttributesRule.swift @@ -292,7 +292,7 @@ public struct AttributesRule: ASTRule, OptInRule, ConfigurationProviderRule { private func parseAttributes(dictionary: SourceKittenDictionary) -> [SwiftDeclarationAttributeKind] { let attributes = dictionary.enclosedSwiftAttributes - let blacklist: Set = [ + let ignoredAttributes: Set = [ .dynamic, .fileprivate, .final, @@ -317,6 +317,6 @@ public struct AttributesRule: ASTRule, OptInRule, ConfigurationProviderRule { .setterPublic, .weak ] - return attributes.filter { !blacklist.contains($0) } + return attributes.filter { !ignoredAttributes.contains($0) } } }