Created
October 19, 2018 05:13
-
-
Save kwontaewan/0c78f65130e03d6d453237f5733b8665 to your computer and use it in GitHub Desktop.
Swift Lint Setting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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