-
Notifications
You must be signed in to change notification settings - Fork 227
/
.swiftlint.yml
40 lines (38 loc) · 1.5 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
included: # paths to include during linting. `--path` is ignored if present.
- megazords
- components/places/ios
- components/support/ios
- components/logins/ios
- components/fxa-client/ios
- components/nimbus/ios
excluded:
# We no longer use carthage. However, some developers might still
# have the Carthage directory in their local environment. It will
# create linting noise if we don't exclude it.
- Carthage
- "**/*/ios/Generated"
- "megazords/ios/MozillaAppServicesTests"
- "megazords/ios-rust/MozillaTestServices/MozillaTestServicesTests"
- "megazords/ios-rust/MozillaTestServices/MozillaTestServices/Generated"
disabled_rules:
- file_length
# We're pretty careful about this already, but it's a pain to disable
# and reenable in the cases where we're sure.
- force_try
# `switch`es, like the ones we have in error conversion, get hit by
# this hard, and it's a dodgy metric to begin with.
- cyclomatic_complexity
# We'll get to these when we get to them!
- todo
# It disagrees with swiftformat on this, and thinks trailing commas are bad...
- trailing_comma
# It disagrees with swiftformat on this, and wants the opening braces to be on the same line in multiline declarations
- opening_brace
# see discussion here https://github.com/realm/SwiftLint/issues/5263
- non_optional_string_data_conversion
identifier_name:
# Turn off it complaining about `id` or `let t = title`, etc, but keep
# warnings around e.g. enum names.
min_length:
warning: 0
error: 0