Skip to content

Instantly share code, notes, and snippets.

@hoppsen
Created May 4, 2022 05:09
Show Gist options
  • Save hoppsen/08b07f362bb24c56a2177c3af551bc5f to your computer and use it in GitHub Desktop.
Save hoppsen/08b07f362bb24c56a2177c3af551bc5f to your computer and use it in GitHub Desktop.
My default configuration file for SwiftLint.
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- .build
- vendor/bundle
- scripts
- BuildTools
- fastlane
- templates
line_length: 160
identifier_name:
allowed_symbols:
- _ # Used in SwiftUI
min_length: 3
excluded:
- id
- ok # Okay
- 'no' # Yes/No
- to # From -> To
type_name:
allowed_symbols:
- _ # Used in SwiftUI
file_length:
warning: 500
error: 750
nesting:
type_level:
warning: 2
function_level:
warning: 5
private_outlet:
allow_private_set: true
opt_in_rules:
- private_outlet
disabled_rules:
- trailing_comma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment