Skip to content

Instantly share code, notes, and snippets.

@PauloLeon
Created September 18, 2017 20:54
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 PauloLeon/0556b44a4652d45f231d43b4e94c4553 to your computer and use it in GitHub Desktop.
Save PauloLeon/0556b44a4652d45f231d43b4e94c4553 to your computer and use it in GitHub Desktop.
the custom rules for swxftlint
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- Source/ExcludedFolder
- Source/ExcludedFile.swift
# rules that have both warning and error levels, can set just the warning level
# implicitly
line_length: 250
# additionally they can set excluded names
identifier_name:
min_length: # only min_length
error: 2 # only error
excluded: # excluded via string array
- id
- URL
- GlobalAPIKey
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment