mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Enable some opt-in rules
This commit is contained in:
@@ -7,14 +7,18 @@ 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
|
||||
@@ -22,6 +26,7 @@ opt_in_rules:
|
||||
- joined_default_parameter
|
||||
- let_var_whitespace
|
||||
- literal_expression_end_indentation
|
||||
- lower_acl_than_parent
|
||||
- nimble_operator
|
||||
- number_separator
|
||||
- object_literal
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ class ConfigurationTests: XCTestCase {
|
||||
return []
|
||||
}
|
||||
|
||||
public func modificationDate(forFileAtPath path: String) -> Date? {
|
||||
func modificationDate(forFileAtPath path: String) -> Date? {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user