From d19225a91a217d444b1c4b7ac6cab501def1f3a6 Mon Sep 17 00:00:00 2001 From: dabear Date: Tue, 5 Apr 2022 21:17:53 +0200 Subject: [PATCH] include swiftlint template --- .swiftlint.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .swiftlint.yml diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000..d375cc1 --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,35 @@ +disabled_rules: # rule identifiers to exclude from running + - trailing_whitespace + - identifier_name + - empty_count + - colon +opt_in_rules: + - empty_count + - empty_string +excluded: + - Carthage + - Pods + - SwiftLint/Common/3rdPartyLib +line_length: + warning: 230 + error: 250 + ignores_function_declarations: true + ignores_comments: true + ignores_urls: true +function_body_length: + warning: 300 + error: 500 +function_parameter_count: + warning: 6 + error: 8 +type_body_length: + warning: 300 + error: 500 +file_length: + warning: 1000 + error: 1500 + ignore_comment_only_lines: true +cyclomatic_complexity: + warning: 15 + error: 25 +reporter: "xcode"