Created
May 4, 2022 05:09
-
-
Save hoppsen/08b07f362bb24c56a2177c3af551bc5f to your computer and use it in GitHub Desktop.
My default configuration file for SwiftLint.
This file contains hidden or 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
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