chore: 添加 SwiftLint 配置

This commit is contained in:
AndyChen1024
2026-09-14 21:10:44 +08:00
parent 653caa0b84
commit ec19d3bf98

38
.swiftlint.yml Normal file
View 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