Polish SwiftLint and SwiftFormat configurations
This commit is contained in:
parent
8459af4196
commit
2b7b378e12
2 changed files with 218 additions and 52 deletions
|
|
@ -1,10 +1,14 @@
|
|||
# Folders to exclude from linting
|
||||
# SwiftLint Configuration
|
||||
|
||||
## Folders to exclude from linting
|
||||
|
||||
excluded:
|
||||
- Carthage
|
||||
- go
|
||||
- Pods
|
||||
|
||||
# Active rules
|
||||
## Active rules
|
||||
|
||||
whitelist_rules:
|
||||
- anyobject_protocol
|
||||
- array_init
|
||||
|
|
@ -201,8 +205,9 @@ whitelist_rules:
|
|||
- xctfail_message
|
||||
- yoda_condition
|
||||
|
||||
# Configuration for specific rules
|
||||
closure_body_length:
|
||||
## Configuration for specific rules
|
||||
|
||||
closure_body_length:
|
||||
warning: 40
|
||||
error: 60
|
||||
type_name:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue