Skip to content

Instantly share code, notes, and snippets.

@kwontaewan
Created October 19, 2018 05:15
Show Gist options
  • Save kwontaewan/86f7e2a424ff408e8396050a2c248ea2 to your computer and use it in GitHub Desktop.
Save kwontaewan/86f7e2a424ff408e8396050a2c248ea2 to your computer and use it in GitHub Desktop.
Swift Lint all disabled rules
disabled_rules: # rule identifiers to exclude from running
- colon
- comma
- control_statement
- file_length
- force_cast
- force_try
- function_body_length
- leading_whitespace
- line_length
- nesting
- operator_whitespace
- opening_brace
- return_arrow_whitespace
- statement_position
- todo
- trailing_newline
- trailing_semicolon
- trailing_whitespace
- type_body_length
- type_name
- valid_docs
- variable_name
- variable_name_min_length
- variable_name_max_length
- cyclomatic_complexity
- shorthand_operator
excluded: # paths to ignore during linting. overridden by `included`.
- Pods
# parameterized rules can be customized from this configuration file
file_length:
- 700
- 1000
line_length:
- 230
- 250
# parameterized rules are first parameterized as a warning level, then error level.
function_body_length:
- 150 # warning
- 200 # error
type_body_length:
- 300 # warning
- 400 # error
variable_name_max_length:
- 30 # warning
- 40 # error
variable_name_min_length:
- 2 # warning
- 1 # error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment