-
Notifications
You must be signed in to change notification settings - Fork 18
/
.swiftlint.yml
47 lines (44 loc) · 1.11 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
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_body_length
- 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
custom_rules:
assert_throws_error:
name: 'API usage'
regex: '(XCTAssertThrowsError)'
match_kinds:
- identifier
message: 'Please use XCTAssertThrows instead of XCTAssertThrowsError'