Skip to content

Commit

Permalink
Remove @IBOutlet and @IBInspectable from UnusedDeclarationRule (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored Nov 5, 2020
1 parent e6df1d3 commit 51084ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
[mknabbe](https://github.com/mknabbe)
[#1280](https://github.com/realm/SwiftLint/issues/1280)

* Remove `@IBOutlet` and `@IBInspectable` from UnusedDeclarationRule
[Keith Smiley](https://github.com/keith)
[#3184](https://github.com/realm/SwiftLint/issues/3184)

#### Bug Fixes

* Fix parsing of Xcode 12 compiler logs for analyzer rules.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private extension SwiftLintFile {
let cursorInfo = self.cursorInfo(at: nameOffset, compilerArguments: compilerArguments)

if let annotatedDecl = cursorInfo?.annotatedDeclaration,
["@IBOutlet", "@IBAction", "@objc", "@IBInspectable"].contains(where: annotatedDecl.contains) {
["@IBAction", "@objc"].contains(where: annotatedDecl.contains) {
return nil
}

Expand Down

0 comments on commit 51084ad

Please sign in to comment.