From 35e588203abc4c620d768a64b75de811c7d5ad89 Mon Sep 17 00:00:00 2001 From: Jesse Squires Date: Tue, 17 Mar 2020 21:05:22 -0700 Subject: [PATCH] update swiftlint.yml --- other_project_defaults/swiftlint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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