Skip to content

Commit

Permalink
Enable some opt-in rules
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelofabri authored and sjavora committed Mar 9, 2019
1 parent f5b9f43 commit bebcc8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,26 @@ analyzer_rules:
- unused_import
- unused_private_declaration
opt_in_rules:
- anyobject_protocol
- array_init
- attributes
- closure_end_indentation
- closure_spacing
- contains_over_first_not_nil
- empty_count
- empty_string
- empty_xctest_method
- explicit_init
- extension_access_modifier
- fallthrough
- fatal_error_message
- file_header
- file_name
- first_where
- joined_default_parameter
- let_var_whitespace
- literal_expression_end_indentation
- lower_acl_than_parent
- nimble_operator
- number_separator
- object_literal
Expand All @@ -31,15 +36,19 @@ opt_in_rules:
- pattern_matching_keywords
- private_action
- private_outlet
- prohibited_interface_builder
- prohibited_super_call
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- redundant_nil_coalescing
- redundant_type_annotation
- single_test_class
- sorted_first_last
- sorted_imports
- unavailable_function
- unneeded_parentheses_in_closure_argument
- untyped_error_in_catch
- vertical_parameter_alignment_on_call
- yoda_condition
- identical_operands
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftLintFrameworkTests/ConfigurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ConfigurationTests: XCTestCase {
return []
}

public func modificationDate(forFileAtPath path: String) -> Date? {
func modificationDate(forFileAtPath path: String) -> Date? {
return nil
}
}
Expand Down

0 comments on commit bebcc8b

Please sign in to comment.