-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
109 lines (108 loc) · 2.16 KB
/
.swiftlint.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
excluded:
- Pods
- Carthage
- safeRoom/Framework
- safeRoom/Resources
- safeRoom/Extension
- safeRoom/Library
- XCode
- blueBook/Support/R.generated.swift
opt_in_rules:
- custom_rules
- todo
- mark
- function_body_length
- line_length
- colon
- comma
- trailing_semicolon
- cyclomatic_complexity
- overridden_super_call
- force_cast
- force_unwrapping
- empty_count
- operator_whitespace
- opening_brace
- closing_brace
- return_arrow_whitespace
- leading_whitespace
- trailing_newline
- statement_position
- vertical_whitespace
- for_where
- unused_enumerated
- trailing_whitespace
- switch_case_alignment
disabled_rules:
- class_delegate_protocol
- switch_case_on_newline
- let_var_whitespace
- array_init
- block_based_kvo
- trailing_closure
- multiple_closures_with_trailing_closure
- contains_over_first_not_nil
- discouraged_direct_init
- explicit_enum_raw_value
- fallthrough
- force_try
- is_disjoint
- joined_default_parameter
- literal_expression_end_indentation
- multiline_parameters
- no_grouping_extension
- pattern_matching_keywords
- private_over_fileprivate
- quick_discouraged_call
- single_test_class
- strict_fileprivate
- superfluous_disable_command
- unneeded_break_in_switch
- unneeded_parentheses_in_closure_argument
- xctfail_message
- empty_enum_arguments
- notification_center_detachment
- unused_optional_binding
- operator_usage_whitespace
- closure_parameter_position
- closure_end_indentation
- unused_closure_parameter
- file_length
- control_statement
- closure_spacing
- conditional_returns_on_newline
- explicit_init
- function_parameter_count
- overridden_super_call
- nesting
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_nsgeometry_functions
- private_outlet
- private_unit_test
- type_name
- identifier_name
- valid_ibinspectable
- type_body_length
- syntactic_sugar
- large_tuple
force_cast: warning
control_statement: error
cyclomatic_complexity:
- 65
- 70
file_length: 2000
function_body_length: 600
line_length: 300
custom_rules:
comment_rules:
included: ".*\\.swift"
name: "Comment_rules"
regex: "//+(\\w)"
match_kinds:
- Comment
message: "Comment must have blank."
severity: warning
included: