Skip to content

Instantly share code, notes, and snippets.

@bulv1ne
Forked from Baza207/.swiftlint.yml
Last active June 19, 2021 09:57
Show Gist options
  • Save bulv1ne/58cc5d07f1aca1b57b6b2da46627e50b to your computer and use it in GitHub Desktop.
Save bulv1ne/58cc5d07f1aca1b57b6b2da46627e50b to your computer and use it in GitHub Desktop.
Default rules for SwiftLint.
disabled_rules: # rule identifiers to exclude from running
- line_length
- force_cast
- trailing_whitespace
- todo
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- fastlane
file_length:
warning: 1200
error: 1600
ignore_comment_only_lines: true
type_body_length:
warning: 600
error: 800
function_body_length:
warning: 80
error: 120
large_tuple:
warning: 4
error: 6
cyclomatic_complexity:
warning: 30
error: 40
if test -d "/opt/homebrew/bin/"; then
  PATH="/opt/homebrew/bin/:${PATH}"
fi
export PATH
if which swiftlint >/dev/null; then
  swiftlint
else
  echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment