-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.swiftlint.yml
38 lines (31 loc) · 983 Bytes
/
.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
#
# NOTE:
# To fix `trailing_whitespace` error,
# go to Xcode Preferences -> Text Editing -> turn on both "Automatically trim trailing whitespace" and "Including whitespace-only lines".
#
disabled_rules:
- line_length
- function_body_length
- type_body_length
- file_length
- cyclomatic_complexity
- unused_closure_parameter
- void_return
- syntactic_sugar # temorarily disabled since `[S.Iterator.Element]()` is not possible (bug?)
- force_cast
- opening_brace # prefer Allman-Style
- closing_brace # allow `}\n)`
- statement_position # allow `if {}\nelse {}`
- type_name # allow "_" prefix name
- variable_name # allow "_" prefix name
- todo
- valid_docs
opt_in_rules:
# - empty_count # local variable name `count` is frequently used
included:
- ReactiveCocoaCatalog
- ReactiveCocoaCatalogTests
excluded:
- Carthage
- Packages
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)