-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
46 lines (41 loc) · 1.16 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
# https://github.com/airbnb/swift
whitelist_rules:
- closure_spacing
- colon
- empty_enum_arguments
- fatal_error_message
- force_try
# - force_cast
# - force_unwrapping
# - implicitly_unwrapped_optional
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_nsgeometry_functions
- operator_usage_whitespace
- redundant_string_enum_value
- redundant_void_return
- return_arrow_whitespace
- trailing_newline
- trailing_whitespace
- trailing_semicolon
- type_name
- generic_type_name
- unused_closure_parameter
- unused_optional_binding
- vertical_whitespace
- void_return
- custom_rules
- file_header
- trailing_comma
excluded:
- "PlaygroundBook/Modules/SnapKit.playgroundmodule"
- "PlaygroundBook/Modules/DifferenceKit.playgroundmodule"
- "PlaygroundBook/Modules/ASCollectionView.playgroundmodule"
# - Pods
# - AHDownloadButton
colon:
apply_to_dictionaries: true
indentation: 2
file_header:
required_pattern: "(\\/\\*\\n \\* Copyright © 2021 Ethan Wong\\. Licensed under MIT\\.\\n \\*)|(\\/\\/#-hidden-code\\n\\/\\/\\n\\/\\/ Copyright © 2021 Ethan Wong\\. Licensed under MIT\\.\\n\\/\\/\\n)"