Skip to content

Instantly share code, notes, and snippets.

@TimothyChilvers
Created May 18, 2018 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimothyChilvers/9034b36b0be02a548dc3418b571b88e1 to your computer and use it in GitHub Desktop.
Save TimothyChilvers/9034b36b0be02a548dc3418b571b88e1 to your computer and use it in GitHub Desktop.
A SwiftLint rule forbidding new lines at the start of a new scope.
custom_rules:
no_newlines_at_start_of_scope:
included: ".*.swift"
name: "No newlines at the start of a scope"
regex: "\\{\\n\\s*\\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment