Created
September 20, 2016 03:55
-
-
Save mitsuse/ac2fe2e2757c46a8e253f27f2c57781d to your computer and use it in GitHub Desktop.
A config file to format source codes automatically with SwiftLint.
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
whitelist_rules: | |
# Correctable rules | |
- "colon" | |
- "comma" | |
- "leading_whitespace" | |
- "legacy_cggeometry_functions" | |
- "legacy_constrant" | |
- "legacy_constructor" | |
- "legacy_nsgeometry_functions" | |
- "return_arrow_whitespace" | |
- "statement_position" | |
- "trailing_newline" | |
- "trailing_semicolon" | |
- "trailing_whitespace" | |
- "vertical_whitespace" | |
# Other rules | |
- "force_cast" | |
- "force_try" | |
- "force_unwrapping" | |
- "todo" | |
- "type_name" | |
- "variable_name" | |
type_name: | |
min_length: 2 | |
max_length: 40 | |
variable_name: | |
min_length: 1 | |
max_length: 40 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment