-
-
Save bulv1ne/58cc5d07f1aca1b57b6b2da46627e50b to your computer and use it in GitHub Desktop.
Default rules for SwiftLint.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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