From ec19d3bf98dfad37df51728faf2ae3e280a500ee Mon Sep 17 00:00:00 2001 From: AndyChen1024 Date: Mon, 14 Sep 2026 21:10:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20SwiftLint=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .swiftlint.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .swiftlint.yml diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000..3b2b143 --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,38 @@ +# SwiftLint 配置 + +disabled_rules: + - trailing_whitespace + +opt_in_rules: + - anyobject_protocol + - array_init + - closure_spacing + - empty_count + - empty_string + - redundant_nil_coalescing + - vertical_whitespace_closing_braces + +excluded: + - .build + - .swiftpm + - DerivedData + - tmp + - ios-client/Assets.xcassets + +line_length: + warning: 120 + error: 160 + ignores_comments: true + ignores_urls: true + +type_name: + min_length: 2 + max_length: 60 + +identifier_name: + min_length: 2 + max_length: 60 + +file_length: + warning: 500 + error: 1000