Created
March 29, 2017 13:18
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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