diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000..e84a57f --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,54 @@ +opt_in_rules: + - anyobject_protocol + - array_init + - attributes + - closure_end_indentation + - closure_spacing + - contains_over_first_not_nil + - convenience_type + - discouraged_optional_boolean + - discouraged_optional_collection + - empty_count + - empty_string + - fallthrough + - fatal_error_message + - first_where + - force_unwrapping + - implicit_return + - implicitly_unwrapped_optional + - joined_default_parameter + - literal_expression_end_indentation + - lower_acl_than_parent + - modifier_order + - multiline_arguments + - multiline_function_chains + - multiline_parameters + - number_separator + - operator_usage_whitespace + - overridden_super_call + - override_in_extension + - private_action + - private_outlet + - prohibited_super_call + - redundant_nil_coalescing + - sorted_first_last + - sorted_imports + - trailing_closure + - unavailable_function + - unneeded_parentheses_in_closure_argument + - vertical_parameter_alignment_on_call + - yoda_condition + +# Rules customization +line_length: + warning: 120 + error: 200 + +nesting: + type_level: + warning: 2 + +# Exclude generated files +excluded: + - .build + - Tests/StencilTests/XCTestManifests.swift diff --git a/Tests/StencilTests/.swiftlint.yml b/Tests/StencilTests/.swiftlint.yml new file mode 100644 index 0000000..46c1b62 --- /dev/null +++ b/Tests/StencilTests/.swiftlint.yml @@ -0,0 +1,3 @@ +disabled_rules: # rule identifiers to exclude from running + - type_body_length + - file_length