-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
50 lines (48 loc) · 1.22 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
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
- redundant_void_return
# - opening_brace
# - operator_whitespace
# - return_arrow_whitespace
# - statement_position
- todo
# - trailing_newline
# - trailing_semicolon
# - trailing_whitespace
- type_body_length
- type_name
# - unused_closure_parameter
- identifier_name
- cyclomatic_complexity
- function_parameter_count
- missing_docs
opt_in_rules: # some rules are only opt-in
- empty_count
# - missing_docs
#- force_unwrapping
# Find all the available rules by running:
# swiftlint rules
included: # paths to include during linting. `--path` is ignored if present.
- "./"
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
# configurable rules can be customized from this configuration file
# binary rules can set their severity level
vertical_whitespace:
max_empty_lines: 2
force_cast: warning # implicitly
force_try:
severity: warning # explicitly
statement_position:
statement_mode: uncuddled_else
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)