-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some warnings
- Loading branch information
Showing
6 changed files
with
102 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,51 @@ | ||
disabled_rules: # rule identifiers to exclude from running | ||
- line_length | ||
opt_in_rules: | ||
- array_init | ||
- attributes | ||
- closure_end_indentation | ||
- closure_spacing | ||
- discouraged_object_literal | ||
- discouraged_optional_boolean | ||
- empty_count | ||
- empty_string | ||
- explicit_init | ||
- fatal_error_message | ||
- file_length | ||
- function_body_length | ||
- type_body_length | ||
|
||
- first_where | ||
- force_cast | ||
- force_try | ||
- force_unwrapping | ||
- implicit_return | ||
- implicitly_unwrapped_optional | ||
- joined_default_parameter | ||
- multiline_parameters | ||
- operator_usage_whitespace | ||
- overridden_super_call | ||
- override_in_extension | ||
- prefixed_toplevel_constant | ||
- private_action | ||
- private_outlet | ||
- prohibited_super_call | ||
- redundant_nil_coalescing | ||
- sorted_first_last | ||
- switch_case_on_newline | ||
- trailing_closure | ||
- unneeded_parentheses_in_closure_argument | ||
- vertical_parameter_alignment_on_call | ||
- yoda_condition | ||
|
||
line_length: 160 | ||
|
||
function_body_length: 80 | ||
|
||
line_length: 180 | ||
|
||
excluded: # paths to ignore during linting. Takes precedence over `included`. | ||
- Pods | ||
- Carthage | ||
|
||
custom_rules: | ||
quickspec_class_name: | ||
name: "Invalid Test Class Name" | ||
regex: "class\\s+(.*)[^Tests]:\\s+QuickSpec" | ||
message: "A test class name must end with 'Tests'" | ||
severity: error |
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
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
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
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
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