Skip to content

Commit

Permalink
Add failing false positive examples to ForceUnwrappingRule's descri…
Browse files Browse the repository at this point in the history
…ption

#546, #547
  • Loading branch information
norio-nomura committed Feb 21, 2016
1 parent 0de9155 commit f80373f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/SwiftLintFramework/Rules/ForceUnwrappingRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public struct ForceUnwrappingRule: OptInRule, ConfigurationProviderRule {
"let s as! Test",
"try! canThrowErrors()",
"let object: AnyObject!",
"@IBOutlet var constraints: [NSLayoutConstraint]!",
"setEditing(!editing, animated: true)",
"navigationController.setNavigationBarHidden(!navigationController." +
"navigationBarHidden, animated: true)",
"if addedToPlaylist && (!self.selectedFilters.isEmpty || " +
"self.searchBar?.text?.isEmpty == false) {}",
],
triggeringExamples: [
"let url = NSURL(string: query)↓!",
Expand Down

0 comments on commit f80373f

Please sign in to comment.