Create swiftlint.yml

This commit is contained in:
Jesse Squires 2020-01-27 16:14:37 -08:00 committed by GitHub
parent 9a1b533aca
commit bbf3a2850e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,88 @@
excluded:
- Pods
- docs
- build
- scripts
disabled_rules:
# metrics
- nesting
# lint
- notification_center_detachment
- weak_delegate
# idiomatic
- force_cast
- type_name
# style
- identifier_name
opt_in_rules:
# performance
- empty_count
- first_where
- sorted_first_last
- contains_over_first_not_nil
- last_where
- reduce_into
- contains_over_filter_count
- contains_over_filter_is_empty
- empty_collection_literal
# idiomatic
- fatal_error_message
- xctfail_message
- discouraged_object_literal
- discouraged_optional_boolean
- discouraged_optional_collection
- for_where
- function_default_parameter_at_end
- legacy_random
- no_extension_access_modifier
- redundant_type_annotation
- static_operator
- toggle_bool
- unavailable_function
- no_space_in_method_call
# style
- attributes
- number_separator
- operator_usage_whitespace
- sorted_imports
- vertical_parameter_alignment_on_call
- void_return
- closure_spacing
- empty_enum_arguments
- implicit_return
- modifier_order
- multiline_arguments
- multiline_parameters
- trailing_closure
- unneeded_parentheses_in_closure_argument
- vertical_whitespace_between_cases
# lint
- overridden_super_call
- yoda_condition
- anyobject_protocol
- array_init
- empty_xctest_method
- identical_operands
- prohibited_super_call
- unused_import
- unused_capture_list
- duplicate_enum_cases
- legacy_multiple
- unused_declaration
line_length: 200
file_length: 600
type_body_length: 500
function_body_length: 250
cyclomatic_complexity: 15