diff --git a/other_project_defaults/swiftlint.yml b/other_project_defaults/swiftlint.yml index 8b991ec..24aa28a 100644 --- a/other_project_defaults/swiftlint.yml +++ b/other_project_defaults/swiftlint.yml @@ -30,6 +30,7 @@ opt_in_rules: - contains_over_filter_count - contains_over_filter_is_empty - empty_collection_literal + - type_contents_order # idiomatic - fatal_error_message @@ -86,3 +87,21 @@ type_body_length: 500 function_body_length: 250 cyclomatic_complexity: 15 + +type_contents_order: + order: + - associated_type + - type_alias + - case + - subtype + - type_property + - ib_outlet + - ib_inspectable + - instance_property + - initializer + - deinitializer + - subscript + - type_method + - view_life_cycle_method + - ib_action + - other_method