-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
34 lines (27 loc) · 759 Bytes
/
Copy path.swiftlint.yml
File metadata and controls
34 lines (27 loc) · 759 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
excluded:
- .build
- tools
# Disabled rules that conflict with SwiftFormat defaults
disabled_rules:
- trailing_comma # SwiftFormat adds trailing commas
- opening_brace # SwiftFormat wrapMultilineStatementBraces moves braces
# Short variable names are idiomatic in Swift for loops (i), math (t, x, y),
# gamma multipliers (m), and test shorthands (bm).
identifier_name:
min_length: 1
# RGB tuples (r, g, b) are a natural 3-member pattern.
large_tuple:
warning: 3
# Large service files (BrightnessManager, SettingsView, DDCController) are cohesive units.
file_length:
warning: 1350
error: 1500
type_body_length:
warning: 730
error: 800
function_body_length:
warning: 80
error: 150
cyclomatic_complexity:
warning: 15
error: 25