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