-
Notifications
You must be signed in to change notification settings - Fork 20
/
.swiftlint.yml
50 lines (48 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
47
48
49
50
disabled_rules:
- trailing_comma
- opening_brace
- todo
- redundant_string_enum_value
- type_body_length
- file_length
- closure_parameter_position
- multiple_closures_with_trailing_closure
- large_tuple
- identifier_name
- type_name
- function_body_length
- line_length
- function_parameter_count
- statement_position
excluded:
- Modules/Firebase
- vendored
- fastlane
- Carthage
- vendor
- scripts
- Danger
- mapbox-navigation-ios
nesting:
type_level: 2
custom_rules:
dont_use_print:
included:
- ".*\\.swift"
excluded:
- "Sources/Demo"
name: "Don't use `print`"
regex: "(^|[^\\w])(print)\\("
match_kinds:
- identifier
capture_group: 2
message: "Use Log[<category>] from Common shared library (not MapboxCommon) instead of `print`s."
severity: warning
_preferWillMoveToWindow:
name: Warning on willMove(toSuperview:)
regex: '(override func willMove\(toSuperview|override func awakeFromNib\(\))'
message: "'configuration' variable is not accessible yet. Use `willMove(toWindow:)` instead"
match_kinds:
- attribute.builtin
- keyword
- identifier