-
Notifications
You must be signed in to change notification settings - Fork 5
/
.swiftlint.yml
105 lines (96 loc) · 2.51 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
97
98
99
100
101
102
103
104
105
whitelist_rules: # only these rules will be applied
- colon
- comma
- conditional_returns_on_newline
- control_statement
- empty_enum_arguments
- empty_parameters
- empty_parentheses_with_trailing_closure
- file_length
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_hashing
- legacy_nsgeometry_functions
- line_length
- class_delegate_protocol
- weak_delegate
- closing_brace
- closure_end_indentation
- closure_parameter_position
- closure_spacing
- explicit_init
- generic_type_name
- identical_operands
- implicit_getter
- is_disjoint
- leading_whitespace
- literal_expression_end_indentation
- mark
- modifier_order
- multiline_arguments
- multiline_function_chains
- multiple_closures_with_trailing_closure
- operator_usage_whitespace
- operator_whitespace
- overridden_super_call
- override_in_extension
- prohibited_super_call
- protocol_property_accessors_order
- redundant_discardable_let
- redundant_nil_coalescing
- redundant_objc_attribute
- redundant_optional_initialization
- redundant_void_return
- return_arrow_whitespace
- shorthand_operator
- statement_position
- switch_case_alignment
- syntactic_sugar
- trailing_comma
- trailing_semicolon
- type_name
- unneeded_break_in_switch
- unused_enumerated
- unused_optional_binding
- valid_ibinspectable
- vertical_parameter_alignment
- vertical_parameter_alignment_on_call
- vertical_whitespace
- void_return
- yoda_condition
- array_init
- attributes
- compiler_protocol_init
- contains_over_first_not_nil
- discouraged_direct_init
- discouraged_object_literal
- discouraged_optional_boolean
- dynamic_inline
- force_try
- force_unwrapping
- legacy_random
# The values below are not final and may need further tweaking.
file_length:
- 2000 #warning
- 2500 #error
function_body_length:
- 200 #warning
- 400 #error
line_length:
- 200 #warning
- 400 #error
type_body_length:
- 1000 #warning
- 2000 #error
identifier_name:
min_length: 1 #warning
max_length: #warning or error
warning: 100
error: 150
type_name:
min_length: 1
max_length: 80 #warning
excluded: # paths to ignore during linting. Takes precedence over `included`.
- External
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji, sonarqube, markdown)