Instantly share code, notes, and snippets.

Embed
What would you like to do?
.swiftlint.yml
# Updated for SwiftLint 0.29.2
# See all rules: https://github.com/realm/SwiftLint/blob/master/Rules.md
opt_in_rules:
# Opt-in (Default Disabled)
- anyobject_protocol
- array_init
- attributes
- closure_body_length
- closure_spacing
- collection_alignment
- conditional_returns_on_newline
- contains_over_first_not_nil
- convenience_type
- discouraged_optional_boolean
- discouraged_optional_collection
- empty_count
- empty_string
- empty_xctest_method
- explicit_init
- fallthrough
- fatal_error_message
- file_name
- first_where
- identifier_name
- implicitly_unwrapped_optional
- joined_default_parameter
- legacy_random
- let_var_whitespace
- literal_expression_end_indentation
- lower_acl_than_parent
- mark
- missing_docs
- modifier_order
- multiline_arguments
- multiline_parameters
- nimble_operator
- operator_usage_whitespace
- overridden_super_call
- pattern_matching_keywords
- private_action
- private_outlet
- prohibited_super_call
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- redundant_nil_coalescing
- redundant_type_annotation
- required_enum_case
- single_test_class
- sorted_first_last
- sorted_imports
- toggle_bool
- trailing_closure
- unneeded_parentheses_in_closure_argument
- untyped_error_in_catch
- unused_import
- unused_private_declaration
- vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- yoda_condition
disabled_rules:
# Should have (Default Enabled)
# Nice to have (Default Disabled)
# Unnecessary rules
- closure_end_indentation
- discouraged_object_literal
- explicit_acl
- explicit_enum_raw_value
- explicit_self
- explicit_top_level_acl
- explicit_type_interface
- extension_access_modifier
- file_header
- identical_operands
- implicit_return
- multiline_arguments_brackets
- multiline_parameters_brackets
- no_extension_access_modifier
- no_grouping_extension
- number_separator
- object_literal
- override_in_extension
- prefixed_toplevel_constant
- prohibited_interface_builder
- redundant_string_enum_value
- static_operator
- strict_fileprivate
- switch_case_on_newline
- unavailable_function
- vertical_whitespace_between_cases
# Parameterized rules can be customized from this configuration file.
cyclomatic_complexity:
ignores_case_statements: true
identifier_name:
excluded:
- vc
- ok
line_length:
ignores_urls: true
ignores_function_declarations: false
ignores_comments: true
ignores_interpolated_strings: true
nesting:
type_level:
warning: 2
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)
included:
# paths to include during linting. `--path` is ignored if present.
excluded:
# paths to ignore during linting. Takes precedence over `included`.
- build
- docs
- Playground
- fastlane
- Frameworks
- Pods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment