Skip to content

Instantly share code, notes, and snippets.

@elenamene
Last active February 20, 2021 20:45
Show Gist options
  • Save elenamene/ca55673f6bb9a9cc2045779ca7cbb6da to your computer and use it in GitHub Desktop.
Save elenamene/ca55673f6bb9a9cc2045779ca7cbb6da to your computer and use it in GitHub Desktop.
swiftlint.yml
disabled_rules: # rule identifiers to exclude from running
- identifier_name
opt_in_rules: # some rules are only opt-in
- anyobject_protocol
- toggle_bool
- operator_usage_whitespace
- overridden_super_call
- prohibited_super_call
- array_init
- closure_body_length
- closure_end_indentation
- closure_spacing
- control_statement
- discouraged_object_literal
- discouraged_optional_collection
- empty_string
- empty_collection_literal
- empty_count
- explicit_init
- explicit_self
- first_where
- force_unwrapping
- unused_import
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- enum_case_associated_values_count
- fallthrough
- fatal_error_message
- flatmap_over_map_reduce
- ibinspectable_in_extension
- identical_operands
- implicit_return
- last_where
- legacy_multiple
- legacy_random
- literal_expression_end_indentation
- redundant_nil_coalescing
- redundant_type_annotation
- sorted_first_last
- joined_default_parameter
- private_over_fileprivate
- private_outlet
- private_action
excluded: # paths to ignore during linting. overridden by `included`.
- Carthage
- Pods
line_length:
warning: 120
error: 160
ignores_comments: true
ignores_interpolated_strings: true
ignores_function_declarations: true
ignores_urls: true
function_body_length:
warning: 100
function_parameter_count:
warning: 6
type_body_length:
warning: 150
file_length:
warning: 800
ignore_comment_only_lines: true
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment