-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
77 lines (72 loc) · 2.28 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
disabled_rules: # rule identifiers to exclude from running
- block_based_kvo
- closing_brace # SwiftFormat - spaceInsideParens
- control_statement # SwiftFormat - redundantParens
- cyclomatic_complexity
- duplicate_imports # SwiftFormat - duplicateImports
- empty_enum_arguments # SwiftFormat - unusedArguments
- empty_parameters # SwiftFormat - void
- function_body_length
- identifier_name
- implicit_getter # SwiftFormat - redundantGet
- leading_whitespace
- mark # SwiftFormat - todos
- no_space_in_method_call # SwiftFormat - spaceAroundParens
- opening_brace # SwiftFormat - braces
- private_over_fileprivate # SwiftFormat - redundantFileprivate
- redundant_discardable_let # SwiftFormat - redundantLet
- redundant_optional_initialization # SwiftFormat - redundantNilInit
- redundant_string_enum_value # SwiftFormat - redundantRawValues
- redundant_void_return # SwiftFormat - redundantVoidReturnType
- syntactic_sugar # SwiftFormat - typeSugar
- vertical_whitespace # SwiftFormat - consecutiveBlankLines
- trailing_whitespace # SwiftFormat - trailingSpace
- trailing_semicolon # SwiftFormat - semicolons
- unneeded_break_in_switch # SwiftFormat - redundantBreak
- unused_closure_parameter # SwiftFormat - unusedArguments
- valid_ibinspectable
- void_return # SwiftFormat - void
opt_in_rules: # some rules are only opt-in
- closure_end_indentation
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- empty_collection_literal
- empty_string
- expiring_todo
- first_where
- force_unwrapping
- last_where
- legacy_multiple
- prohibited_interface_builder
- redundant_type_annotation
- sorted_first_last
- toggle_bool
- type_contents_order
- unowned_variable_capture
- unused_import
excluded: # paths to ignore during linting. Takes precedence over `included`.
- build
- DerivedData
- docs
- Pods
- vendor
- fastlane
large_tuple:
warning: 2
error: 15
force_unwrapping:
severity: error
prohibited_interface_builder:
severity: error
line_length:
warning: 300
error: 400
ignores_comments: true
ignores_urls: true
ignores_function_declarations: true
ignores_interpolated_strings: true
file_length:
warning: 500
error: 1200