-
Notifications
You must be signed in to change notification settings - Fork 150
/
.swiftlint.yml
62 lines (55 loc) · 1.27 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
disabled_rules: # rule identifiers to exclude from running
# - colon
# - comma
# - control_statement
# - file_length
# - force_cast
# - force_try
# - function_body_length
# - leading_whitespace
# - line_length
- nesting
- large_tuple
- unused_closure_parameter
# - opening_brace
# - operator_whitespace
# - return_arrow_whitespace
# - statement_position
# - todo
# - trailing_newline
# - trailing_semicolon
- trailing_whitespace
- type_name
- xctfail_message
- trailing_comma
# - variable_name_max_length
# - variable_name_min_length
# - variable_name
#included: # paths to include during linting. `--path` is ignored if present. takes precendence over `excluded`.
excluded: # paths to ignore during linting. overridden by `included`.
- Carthage
- Pods
- Modules
- Tests/LinuxMain.swift
- Tests/ViewInspectorTests/XCTestManifests.swift
identifier_name:
min_length: 2
file_length:
warning: 600
error: 1000
type_body_length:
warning: 500
error: 1000
function_parameter_count:
warning: 6
error: 10
line_length:
warning: 130
error: 200
custom_rules:
assert_throws_error:
name: 'API usage'
regex: '(XCTAssertThrowsError)'
match_kinds:
- identifier
message: 'Please use XCTAssertThrows instead of XCTAssertThrowsError'