Last active
May 4, 2017 06:02
-
-
Save shsteven/7f200a83117970ffb3be876735eeb31d to your computer and use it in GitHub Desktop.
SwiftLint template
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
included: | |
- source | |
excluded: | |
- vendor | |
whitelist_rules: | |
# code formatting & syntax | |
- compiler_protocol_init | |
- control_statement | |
- empty_count | |
- empty_parameters | |
- empty_parentheses_with_trailing_closure | |
- implicit_getter | |
- opening_brace | |
- operator_usage_whitespace | |
- operator_whitespace | |
- statement_position | |
- syntactic_sugar | |
- trailing_semicolon | |
- line_length | |
- number_separator | |
# best practices | |
- class_delegate_protocol | |
- dynamic_inline | |
- force_cast | |
- force_try | |
- implicitly_unwrapped_optional | |
- missing_docs | |
- overridden_super_call | |
- prohibited_super_call | |
- redundant_discardable_let | |
- redundant_optional_initialization | |
- redundant_string_enum_value | |
- redundant_void_return | |
- return_arrow_whitespace | |
- void_return | |
- weak_delegate | |
- unused_closure_parameter | |
- unused_enumerated | |
- unused_optional_binding | |
- generic_type_name | |
- discarded_notification_center_observer | |
# code complexity & readability | |
- cyclomatic_complexity | |
- custom_rules | |
line_length: 120 | |
number_separator: | |
minimum_length: 5 | |
force_cast: warning | |
force_try: | |
severity: warning | |
type_name: | |
max_length: | |
warning: 40 | |
error: 50 | |
implicitly_unwrapped_optional: | |
severity: warning | |
custom_rules: | |
value_type_naming: | |
name: "Value type naming" | |
regex: "[O|o]bject: Persistable" | |
message: "Value type variables should be called 'value' instead of 'object'." | |
severity: warning | |
reporter: xcode |
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
"${PODS_ROOT}/SwiftLint/swiftlint" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment