-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
63 lines (53 loc) · 1015 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
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
included:
- src
disabled_rules:
- todo
- unused_setter_value
opt_in_rules:
- indentation_width
- conditional_returns_on_newline
- multiline_parameters_brackets
- multiline_parameters
- multiline_literal_brackets
- multiline_function_chains
- closure_end_indentation
- redundant_nil_coalescing
- collection_alignment
type_name:
max_length: 60
conditional_returns_on_newline:
if_only: true
indentation_width:
indentation_width: 2
include_comments: false
trailing_comma:
mandatory_comma: true
identifier_name:
excluded:
- ok
- ui
- yes
- no
- url
- uri
- id
- ids
- x
- y
- en
- ru
custom_rules:
prohibited_symbols:
name: "Prohibited symbols"
regex: "[\r\t]"
message: "Remove carriage return and tabs"
severity: error
class_protocol:
regex: ': class'
message: "Use Anyobject instead"
excluded:
- Carthage
- Pods
- .build
- src/CameraKit/.build
- src/ScreenshotTool/SnapshotHelper.swift