chore: 添加 SwiftLint 配置
This commit is contained in:
38
.swiftlint.yml
Normal file
38
.swiftlint.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
# SwiftLint 配置
|
||||
|
||||
disabled_rules:
|
||||
- trailing_whitespace
|
||||
|
||||
opt_in_rules:
|
||||
- anyobject_protocol
|
||||
- array_init
|
||||
- closure_spacing
|
||||
- empty_count
|
||||
- empty_string
|
||||
- redundant_nil_coalescing
|
||||
- vertical_whitespace_closing_braces
|
||||
|
||||
excluded:
|
||||
- .build
|
||||
- .swiftpm
|
||||
- DerivedData
|
||||
- tmp
|
||||
- ios-client/Assets.xcassets
|
||||
|
||||
line_length:
|
||||
warning: 120
|
||||
error: 160
|
||||
ignores_comments: true
|
||||
ignores_urls: true
|
||||
|
||||
type_name:
|
||||
min_length: 2
|
||||
max_length: 60
|
||||
|
||||
identifier_name:
|
||||
min_length: 2
|
||||
max_length: 60
|
||||
|
||||
file_length:
|
||||
warning: 500
|
||||
error: 1000
|
||||
Reference in New Issue
Block a user