-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
68 lines (61 loc) · 1.48 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
disabled_rules:
- trailing_whitespace
- trailing_semicolon
- sorted_imports
- control_statement
- no_space_in_method_call
- multiple_closures_with_trailing_closure
- vertical_whitespace_closing_braces
- cyclomatic_complexity
- implicit_getter
- private_outlet
- function_body_length
- function_parameter_count
- implicit_return
- first_where
- unused_optional_binding
- empty_enum_arguments
- for_where
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- ArkanaKeys
- Source/ExcludedFolder
- Source/ExcludedFile.swift
- Source/*/ExcludedFile.swift # Exclude files with a wildcards
- .build
opt_in_rules:
- empty_count
- explicit_init
- closure_spacing
- overridden_super_call
- redundant_nil_coalescing
- private_outlet
- nimble_operator
- attributes
- operator_usage_whitespace
- first_where
- sorted_imports
- object_literal
- prohibited_super_call
- fatal_error_message
- force_unwrapping
- number_separator
force_cast: warning
force_try: error
force_unwrapping: warning
legacy_constant: warning
notification_center_detachment: warning
legacy_constant: warning
empty_count:
severity: warning
identifier_name:
allowed_symbols: _
validates_start_lowercase: false
min_length: 2
max_length:
warning: 40
error: 60
line_length:
ignores_comments: true
warning: 150