Skip to content

Instantly share code, notes, and snippets.

@darrarski
Created April 8, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrarski/706b6caccd728a6d0464dcfb4e8b0c7b to your computer and use it in GitHub Desktop.
Save darrarski/706b6caccd728a6d0464dcfb4e8b0c7b to your computer and use it in GitHub Desktop.
SwiftLint rules
opt_in_rules:
- file_name
- empty_count
- sorted_imports
- force_unwrapping
- operator_usage_whitespace
- number_separator
- switch_case_on_newline
- implicit_return
- overridden_super_call
- object_literal
- nimble_operator
- first_where
- closure_spacing
- closure_end_indentation
- attributes
- explicit_init
- fatal_error_message
- redundant_nil_coalescing
- private_outlet
- prohibited_super_call
- vertical_parameter_alignment_on_call
- unneeded_parentheses_in_closure_argument
- single_test_class
- quick_discouraged_call
- pattern_matching_keywords
- multiline_parameters
- joined_default_parameter
- strict_fileprivate
- let_var_whitespace
- contains_over_first_not_nil
- switch_case_alignment
- multiline_arguments
- unneeded_break_in_switch
- literal_expression_end_indentation
- sorted_first_last
- override_in_extension
- yoda_condition
- for_where
- unused_closure_parameter
- discouraged_optional_boolean
- empty_string
- legacy_constructor
- untyped_error_in_catch
line_length:
warning: 120
error: 200
file_length:
warning: 140
error: 150
type_name:
min_length: 2
max_length:
warning: 50
error: 55
identifier_name:
min_length: 3
max_length:
warning: 40
error: 50
excluded:
- ui
- cg
- id
- to
- rx
- x
- y
explicit_type_interface:
excluded:
- local
excluded:
- Generated
opt_in_rules:
- file_name
- empty_count
- vertical_whitespace
- vertical_parameter_alignment_on_call
- nimble_operator
- single_test_class
- quick_discouraged_focused_test
disabled_rules:
- force_try
- force_cast
- force_unwrapping
- type_name
- line_length
- file_length
- function_parameter_count
- cyclomatic_complexity
- function_body_length
- type_body_length
- identifier_name
- large_tuple
line_length:
warning: 120
error: 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment