-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
33 lines (29 loc) · 1.06 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
disabled_rules: # rule identifiers to exclude from running
- type_name
- line_length
opt_in_rules: # some rules are only opt-in
- empty_count
# 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`.
# - Source/ExcludedFolder
# - Source/ExcludedFile.swift
# - Source/*/ExcludedFile.swift # Exclude files with a wildcard
# configurable rules can be customized from this configuration file
# binary rules can set their severity level
# rules that have both warning and error levels, can set just the warning level
# implicitly
# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
trailing_whitespace:
ignores_empty_lines: true
vertical_whitespace:
max_empty_lines: 2
function_body_length:
warning: 50
error: 100
large_tuple:
warning: 4
error: 5
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji, sonarqube, markdown)