forked from SwiftcordApp/DiscordKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
32 lines (28 loc) · 741 Bytes
/
.swiftlint.yml
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
disabled_rules:
- line_length
- unused_closure_parameter
- multiple_closures_with_trailing_closure
- large_tuple
- todo # TODOs are precisely for reminding me of tasks I'll have to do in the future. If they are flagged as violations, it completely defeats the point.
- file_length
opt_in_rules:
force_cast: warning
force_try: warning
excluded:
- Sources/DiscordKit/protos
- .build
identifier_name:
min_length:
warning: 3
error: 0
max_length:
warning: 40
error: 50
allowed_symbols: ["_"]
cyclomatic_complexity:
ignores_case_statements: true
nesting:
type_level:
warning: 5
error: 8
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji, sonarqube, markdown)