-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.swiftlint.yml
30 lines (28 loc) · 963 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
disabled_rules:
- type_name
- identifier_name
- switch_case_alignment
- cyclomatic_complexity # Too many false alarms for enum conversion switch statements
- redundant_optional_initialization
- closure_parameter_position
- opening_brace
- nesting # Sometimes it just makes sense to nest 2 levels deep
- trailing_comma # Conflicts with swift-format
- file_length
- force_cast # Required a lot in backend implementations
- function_body_length
line_length: 140
type_body_length: 400
included:
- Sources
- Examples
excluded:
- Sources/SwiftCrossUI/Builders/ViewBuilder.swift
- Sources/SwiftCrossUI/Builders/SceneBuilder.swift
- Sources/SwiftCrossUI/Builders/TableRowBuilder.swift
- Sources/SwiftCrossUI/Views/TupleView.swift
- Sources/SwiftCrossUI/Views/TupleViewChildren.swift
- Sources/SwiftCrossUI/Views/TableRowContent.swift
- Sources/SwiftCrossUI/Scenes/TupleScene.swift
- Sources/Gtk/Generated
- Examples/.build