Skip to content

Instantly share code, notes, and snippets.

@PaulTaykalo
Last active July 24, 2019 10:48
Show Gist options
  • Save PaulTaykalo/da1295b0958e12d95b71265e601c24ea to your computer and use it in GitHub Desktop.
Save PaulTaykalo/da1295b0958e12d95b71265e601c24ea to your computer and use it in GitHub Desktop.
All Classes and Extensions declared in tests should be private of fileprivate
custom_rules:
all_private_helpers_in_tests:
included: ".*Tests?\\.swift"
name: "All private mocks"
regex: "^(class|extension) (?!\\w+Tests?)"
message: "All helpers in tests should be private"
severity: warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment