Skip to content

Instantly share code, notes, and snippets.

@Baza207
Last active June 19, 2021 09:56
Show Gist options
  • Save Baza207/137fe9ad787f24bfec63 to your computer and use it in GitHub Desktop.
Save Baza207/137fe9ad787f24bfec63 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment