-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
75 lines (66 loc) · 1.49 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
# paths to ignore during linting, takes precedence over `included`
excluded:
- fastlane
- Pods
- Scripts
- Packages/Shared/Sources/Shared/Generated
# rule identifiers to exclude from running
disabled_rules:
- cyclomatic_complexity
- identifier_name
- inclusive_language
- large_tuple
- nesting
- orphaned_doc_comment
- redundant_discardable_let
- shorthand_operator
- trailing_comma
- unavailable_function
# include some opt-in rules
opt_in_rules:
- closure_end_indentation
- closure_spacing
- contains_over_first_not_nil
- empty_count
- empty_string
- explicit_init
- fatal_error_message
- first_where
- force_unwrapping
- implicit_return
- joined_default_parameter
- multiline_arguments
- multiline_parameters
- nimble_operator
- operator_usage_whitespace
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- sorted_first_last
- sorted_imports
- unavailable_function
- untyped_error_in_catch
- vertical_parameter_alignment_on_call
- yoda_condition
# other settings
force_unwrapping: warning
force_try: warning
file_length:
ignore_comment_only_lines: true
warning: 1101
error: 1201
type_body_length:
warning: 401
error: 501
function_body_length:
warning: 101
error: 151
line_length:
warning: 141
error: 151
identifier_name:
min_length: 1
max_length: 40
type_name:
min_length: 1
max_length: 40