-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
96 lines (95 loc) · 2.31 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
93
94
95
96
enabled_rules:
- attributes
- class_delegate_protocol
- colon
- comma
- control_statement
- closure_parameter_position
- closure_end_indentation
- closure_spacing
- closing_brace
- conditional_returns_on_newline
- custom_rules
- discarded_notification_center_observer
- dynamic_inline
- empty_count
- empty_enum_arguments
- empty_parameters
- empty_parentheses_with_trailing_closure
- explicit_top_level_acl
- explicit_type_interface
- fatal_error_message
- first_where
- force_cast
- force_try
- for_where
- identifier_name
- implicit_getter
- implicit_return
- implicitly_unwrapped_optional
- generic_type_name
- large_tuple
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_nsgeometry_functions
- mark
- multiline_parameters
- nimble_operator
- nesting
- notification_center_detachment
- no_extension_access_modifier
- opening_brace
- operator_usage_whitespace
- operator_whitespace
- object_literal
- overridden_super_call
- private_unit_test
- private_outlet
- prohibited_super_call
- protocol_property_accessors_order
- redundant_discardable_let
- redundant_optional_initialization
- redundant_string_enum_value
- redundant_nil_coalescing
- redundant_void_return
- return_arrow_whitespace
- shorthand_operator
- statement_position
- sorted_imports
- switch_case_on_newline
- trailing_comma
- trailing_newline
- trailing_semicolon
- trailing_whitespace
- todo
- unused_enumerated
- unused_optional_binding
- unused_closure_parameter
- valid_ibinspectable
- vertical_whitespace
- weak_delegate
- void_return
- vertical_parameter_alignment
- vertical_parameter_alignment_on_call
disabled_rules:
- compiler_protocol_init
- cyclomatic_complexity # counts ifs
- extension_access_modifier
- explicit_init
- file_length
- function_body_length
- function_parameter_count
- line_length
- number_separator
- syntactic_sugar
- type_body_length
- type_name
trailing_whitespace:
ignores_empty_lines: true
nesting:
type_level: 2
large_tuple:
warning: 3
error: 4