forked from mapbox/mapbox-search-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
39 lines (37 loc) · 810 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
39
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"
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