Skip to content

Commit

Permalink
Merge pull request #3275 from realm/marcelo/rename-blacklist
Browse files Browse the repository at this point in the history
Remove a usage of “blacklist”
  • Loading branch information
marcelofabri authored Aug 4, 2020
2 parents 20b8614 + 28bec96 commit a4a0481
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 a4a0481

Please sign in to comment.