Skip to content

Instantly share code, notes, and snippets.

@JaviSoto
Created June 16, 2020 17:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JaviSoto/deacd09ba96e76d8f2179878a8771dda to your computer and use it in GitHub Desktop.
Save JaviSoto/deacd09ba96e76d8f2179878a8771dda to your computer and use it in GitHub Desktop.
disallowed_racist_terms_of_art SwiftLint
disallowed_racist_terms_of_art:
name: "Disallowed racist terms of art"
regex: 'blacklist|whitelist|^((?<!git)[^\n])*master(?! (manifest|playlist))|slave'
message: "Please, refrain from using terms which have racist connotations. Consider alternatives such as allow, disallow, primary, secondary..."
severity: error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment