-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.swiftlint.yml
59 lines (49 loc) · 1.08 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
disabled_rules:
- identifier_name
- opening_brace
- trailing_comma
- function_parameter_count
- closure_parameter_position
- multiple_closures_with_trailing_closure
# Find all the available rules by running: `swiftlint rules`
opt_in_rules:
- empty_count
# excluded files
excluded:
- "*/MockData.swift"
# configurable rules can be customized from this configuration file
force_cast: error
force_try: error
line_length:
warning: 200
error: 300
type_body_length:
warning: 1000
error: 1400
file_length:
warning: 500
error: 1200
type_name:
min_length: 4
max_length:
warning: 40
error: 50
excluded: iPhone
allowed_symbols: ["_"]
identifier_name:
min_length: # only min_length
error: 4 # only error
excluded: # excluded via string array
- id
- req
- key
- app
- App
- url
- URL
- res
- sql
- env
- telemetry_api_server_version
#reporter: "github-actions-logging" # reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging)
reporter: "xcode"