-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
75 lines (74 loc) · 1.88 KB
/
.swiftlint.yml
File metadata and controls
75 lines (74 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
excluded:
- .git**
- Packages/Build/**
- Build/**
- Packages/**/.build/**
- resource_bundle_accessor.swift
- Pods
- R.generated.swift
- .build # Where Swift Package Manager checks out dependency sources
# 添加 Google Swift Style Guide 建議的規則
opt_in_rules:
- anyobject_protocol
- attributes
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- discouraged_direct_init
- empty_string
- explicit_init
- explicit_top_level_acl
- extension_access_modifier
- fallthrough
- fatal_error_message
- first_where
- force_unwrapping
- function_default_parameter_at_end
- implicit_return
- joined_default_parameter
- last_where
- literal_expression_end_indentation
- lower_acl_than_parent
- modifier_order
- multiline_arguments
- multiline_function_chains
- multiline_literal_brackets
- multiline_parameters
- nimble_operator
- no_extension_access_modifier
- no_grouping_extension
- no_space_in_method_call
- number_separator
- object_literal
- operator_usage_whitespace
- overridden_super_call
- pattern_matching_keywords
- prefer_self_in_static_references
- private_action
- private_outlet
- private_over_fileprivate
- prohibited_super_call
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- raw_value_for_camel_cased_codable_enum
- reduce_boolean
- reduce_into
- required_enum_case
- shorthand_operator
- single_test_class
- sorted_first_last
- sorted_imports
- static_operator
- strict_fileprivate
- toggle_bool
- unavailable_function
- unneeded_parentheses_in_closure_argument
- untyped_error_in_catch
#- vertical_whitespace_between_cases
#- vertical_whitespace_closing_braces
#- vertical_whitespace_opening_braces
- void_return