-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
63 lines (52 loc) · 1.07 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
disabled_rules:
- function_parameter_count
- large_tuple
- trailing_comma
- trailing_whitespace
- nesting
- multiple_closures_with_trailing_closure
opt_in_rules:
- attributes
- force_unwrapping
- contains_over_filter_is_empty
- contains_over_range_nil_comparison
- contains_over_filter_count
- first_where
included:
- Testio
# - AppPackages
excluded:
# - Pods
# - AppPackages/Package.swift
# - AppPackages/Tests
force_cast: warning
force_try:
severity: warning
line_length:
warning: 120
error: 120
file_length:
warning: 800
error: 1200
function_body_length:
warning: 60
cyclomatic_complexity:
ignores_case_statements: true
identifier_name:
excluded:
- id
- ok
- or
- vc
- vm
- rx
- x
- y
type_name:
excluded:
- Id
- TS
- VS
attributes:
always_on_same_line: ["@IBOutlet", "@IBAction", "@IBSegueAction", "@NSManaged", "@objc"]
always_on_line_above: ["@IBDesignable", "@IBInspectable", "@discardableResult"]