From 5df208336ab7e2bce4d334065061f25f0dcc9290 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Tue, 26 May 2020 18:34:10 -0400 Subject: [PATCH] Copy SwiftLint config from master --- .swiftlint.yml | 20 ++++++++++++++++++++ Tests/.swiftlint.yml | 4 ++++ UITests/.swiftlint.yml | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 .swiftlint.yml create mode 100644 Tests/.swiftlint.yml create mode 100644 UITests/.swiftlint.yml diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 00000000..1bbdd813 --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,20 @@ +excluded: + - Vendor +disabled_rules: + - opening_brace + - empty_parentheses_with_trailing_closure + - function_body_length + - line_length + - cyclomatic_complexity + - large_tuple + +# Rule-specific config +trailing_comma: + mandatory_comma: true +force_try: + severity: warning +force_cast: + severity: warning +identifier_name: + min_length: + warning: 2 diff --git a/Tests/.swiftlint.yml b/Tests/.swiftlint.yml new file mode 100644 index 00000000..e8ecab25 --- /dev/null +++ b/Tests/.swiftlint.yml @@ -0,0 +1,4 @@ +# Inherits from top level config +disabled_rules: + - force_try + - force_cast diff --git a/UITests/.swiftlint.yml b/UITests/.swiftlint.yml new file mode 100644 index 00000000..e8ecab25 --- /dev/null +++ b/UITests/.swiftlint.yml @@ -0,0 +1,4 @@ +# Inherits from top level config +disabled_rules: + - force_try + - force_cast