Skip to content

Commit

Permalink
Remove a usage of “blacklist”
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelofabri committed Aug 4, 2020
1 parent 20b8614 commit 28bec96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SwiftLintFramework/Rules/Style/AttributesRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public struct AttributesRule: ASTRule, OptInRule, ConfigurationProviderRule {

private func parseAttributes(dictionary: SourceKittenDictionary) -> [SwiftDeclarationAttributeKind] {
let attributes = dictionary.enclosedSwiftAttributes
let blacklist: Set<SwiftDeclarationAttributeKind> = [
let ignoredAttributes: Set<SwiftDeclarationAttributeKind> = [
.dynamic,
.fileprivate,
.final,
Expand All @@ -317,6 +317,6 @@ public struct AttributesRule: ASTRule, OptInRule, ConfigurationProviderRule {
.setterPublic,
.weak
]
return attributes.filter { !blacklist.contains($0) }
return attributes.filter { !ignoredAttributes.contains($0) }
}
}

0 comments on commit 28bec96

Please sign in to comment.