Skip to content

Instantly share code, notes, and snippets.

@PoissonBallon
Last active April 26, 2024 13:56
Show Gist options
  • Save PoissonBallon/c14ac76bd571405258e15c63de25b87c to your computer and use it in GitHub Desktop.
Save PoissonBallon/c14ac76bd571405258e15c63de25b87c to your computer and use it in GitHub Desktop.
#######################################
# Configuration
#######################################
reporter: "xcode"
allow_zero_lintable_files: false
strict: false
#######################################
# Project
#######################################
included:
- Foo/
- Bar/
excluded:
- Carthage
#######################################
# Rules
#######################################
opt_in_rules:
- all
disabled_rules:
- anyobject_protocol #Deprecated
- inert_defer #Deprecated
- unused_capture_list #Deprecated
- missing_docs #temporary
- prefixed_toplevel_constant
- explicit_acl
- explicit_top_level_acl
- explicit_type_interface
- required_deinit
- explicit_enum_raw_value
- no_grouping_extension
- switch_case_on_newline
- conditional_returns_on_newline
- sorted_enum_cases
- no_extension_access_modifier
#######################################
# Rules Configuration
#######################################
#-------------------------------------------
indentation_width:
indentation_width: 2
#-------------------------------------------
line_length: 150
#-------------------------------------------
type_body_length:
- 300 # warning
- 400 # error
#-------------------------------------------
file_length:
warning: 500
error: 1200
#-------------------------------------------
identifier_name:
min_length: # only min_length
warning: 2
error: 2
#-------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment