41 строка
1.5 KiB
YAML
41 строка
1.5 KiB
YAML
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
|