diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index e70f89a..0b93bf0 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -45,6 +45,7 @@ opt_in_rules: - conditional_returns_on_newline - closure_spacing - closure_end_indentation + - trailing_closure # lint @@ -89,6 +90,9 @@ identifier_name: warning_threshold: 1 custom_rules: + + # General + uiwebview_disabled: included: ".*.swift" name: "UIWebView Usage Disabled" @@ -102,18 +106,12 @@ custom_rules: message: "Please use CocoaLumberjack instead `print` and `NSlog`" severity: error - zero: - name: "Short .zero" + uiedge_insets_zero: + name: "UIEdgeInsets .zero" regex: '\(top: 0, left: 0, bottom: 0, right: 0\)' message: "Please use short init `.zero`." severity: error - private_variable: - name: "Private variable" - regex: '(?