-
Notifications
You must be signed in to change notification settings - Fork 3
/
.swiftlint.yml
92 lines (92 loc) · 1.88 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
whitelist_rules:
- todo
- trailing_newline
- leading_whitespace
- trailing_whitespace
- trailing_semicolon
- private_action
- private_outlet
- redundant_nil_coalescing
- single_test_class
- trailing_closure
- class_delegate_protocol
- closing_brace
- closure_parameter_position
- colon
- comma
- compiler_protocol_init
- control_statement
- empty_parentheses_with_trailing_closure
- force_cast
- force_try
- force_unwrapping
- for_where
- generic_type_name
- implicit_getter
- mark
- opening_brace
- operator_whitespace
- operator_usage_whitespace
- private_unit_test
- redundant_discardable_let
- redundant_optional_initialization
- redundant_string_enum_value
- redundant_void_return
- return_arrow_whitespace
- shorthand_operator
- statement_position
- type_name
- vertical_parameter_alignment
- vertical_whitespace
- weak_delegate
- closure_end_indentation
- closure_spacing
- conditional_returns_on_newline
- explicit_init
- first_where
- prohibited_super_call
- block_based_kvo
- fatal_error_message
- identifier_name
- valid_ibinspectable
- attributes
- discarded_notification_center_observer
- discouraged_direct_init
- empty_string
- identical_operands
- implicit_return
- implicitly_unwrapped_optional
- inert_defer
- literal_expression_end_indentation
- modifier_order
- multiline_parameters
- multiple_closures_with_trailing_closure
- redundant_set_access_control
- sorted_first_last
- switch_case_alignment
- syntactic_sugar
- toggle_bool
- unneeded_break_in_switch
- unused_import
identifier_name:
min_length: 0
max_length:
warning: 50
warning: 60
excluded:
- id
- URL
type_name:
min_length: 4
max_length:
warning: 50
error: 60
force_cast: error
force_try:
severity: error
included:
- Sources
- Terminal
excluded:
- Carthage
- Pods