Skip to content

Instantly share code, notes, and snippets.

@ManWithBear
Created March 29, 2017 13:18
Show Gist options
  • Save ManWithBear/359dcc98fcfa050d262ed5fb257736c4 to your computer and use it in GitHub Desktop.
Save ManWithBear/359dcc98fcfa050d262ed5fb257736c4 to your computer and use it in GitHub Desktop.
Rule for swiftlint to show warnings on focused test to prevent commits with focus
custom_rules:
quick_focus:
included: ".*.swift"
name: "Focus on tests"
regex: "^\s*f(it|context|describe)\s*\("
match_kinds:
- identifier
message: "Focused tests should not be commited"
severity: warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment