From d44949e50b977c1acded8606a2c183c6ea9d749f Mon Sep 17 00:00:00 2001 From: Samuel Bichsel Date: Tue, 9 Mar 2021 16:11:41 +0100 Subject: [PATCH] [fix-swiftlint] Use new swiftlint file --- .swiftlint.yml | 16 +++------------- Sources/dreiKit/UIView+Tools.swift | 1 - 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 118a00a..0e0d729 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -18,14 +18,9 @@ opt_in_rules: - yoda_condition disabled_rules: - # - todo - identifier_name # Example: Variable name should only contain alphanumeric characters: 'fileName_01' - - function_body_length - - type_body_length - trailing_comma -cyclomatic_complexity: - ignores_case_statements: true line_length: warning: 140 @@ -33,13 +28,8 @@ line_length: ignores_comments: true ignores_urls: true -function_body_length: - warning: 40 - error: 100 - -vertical_whitespace: - severity: warning - max_empty_lines: 3 - # Set output type. reporter: "xcode" + +force_cast: warning +force_try: warning diff --git a/Sources/dreiKit/UIView+Tools.swift b/Sources/dreiKit/UIView+Tools.swift index fc3e75f..0f2870c 100644 --- a/Sources/dreiKit/UIView+Tools.swift +++ b/Sources/dreiKit/UIView+Tools.swift @@ -62,7 +62,6 @@ public extension UIView { } } - public extension UIView { // Scale and rotate does not work combined when animating