Skip to content

Instantly share code, notes, and snippets.

@brunogama
Created June 28, 2020 12:22
Show Gist options
  • Save brunogama/0f392427c075348bbe952c66266d3e5d to your computer and use it in GitHub Desktop.
Save brunogama/0f392427c075348bbe952c66266d3e5d to your computer and use it in GitHub Desktop.
Gist for .swiftlint.auto.yml
---
# Rules in this file will be automatically fixed. The script in Xcode must be
# changed to:
#
# if which swiftlint >/dev/null; then
# swiftlint autocorrect --config ".swiftlint.auto.yml" && swiftlint
# else
# echo "warning: SwiftLint not installed"
# echo "Download from https://github.com/realm/SwiftLint"
# fi
#
# Rules that support autocorrect:
# https://github.com/realm/SwiftLint/blob/master/Rules.md
whitelist_rules:
- trailing_whitespace
- trailing_newline
- vertical_whitespace
- comma
- colon
excluded:
# Either folders or the absolute path of files, as SwiftLint doesn't support
# recursive search (https://github.com/realm/SwiftLint/issues/2329).
- ${SRCROOT}/Union Pro/Support/Playground
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment