Enable SwiftLint rule 'identifier_name' and handle all violations

This commit is contained in:
Danny Moesch 2020-09-20 15:07:18 +02:00 committed by Mingshen Sun
parent 7ada4dd96d
commit e8389eb262
21 changed files with 157 additions and 156 deletions

View file

@ -77,7 +77,7 @@ whitelist_rules:
- generic_type_name
- ibinspectable_in_extension
- identical_operands
# - identifier_name
- identifier_name
- implicit_getter
- implicit_return
# - implicitly_unwrapped_optional
@ -212,6 +212,9 @@ attributes:
closure_body_length:
warning: 40
error: 60
identifier_name:
excluded: ["id", "to", "Defaults"]
allowed_symbols: ["_"]
type_name:
max_length: 50
trailing_closure: