forked from steipete/VibeMeter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
40 lines (33 loc) · 898 Bytes
/
.swiftlint.yml
File metadata and controls
40 lines (33 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
disabled_rules:
- trailing_comma # Allow trailing commas for better git diffs
- identifier_name # Allow shorter names like 'ui' and test functions with underscores
- force_cast # Allow force casts in tests
- force_try # Allow force try in tests
- redundant_optional_initialization # Swift 6 sometimes requires explicit nil initialization
- explicit_self # Let SwiftFormat handle self usage consistently
- opening_brace # Let SwiftFormat handle brace formatting to avoid conflicts
opt_in_rules:
- empty_count
- empty_string
excluded:
- Derived
- .build
- build
- build-test
- Package.swift
- VibeMeter.xcodeproj
- VibeMeter.xcworkspace
line_length:
warning: 120
error: 200
ignores_comments: true
ignores_urls: true
file_length:
warning: 600
error: 1000
function_body_length:
warning: 60
error: 150
type_body_length:
warning: 400
error: 600