-
Notifications
You must be signed in to change notification settings - Fork 10
/
.swiftlint.yml
68 lines (68 loc) · 1.57 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
63
64
65
66
67
68
disabled_rules: # rule identifiers to exclude from running
# - closing_brace
# - colon
# - comma
# - conditional_binding_cascade
# - control_statement
# - custom_rules
- cyclomatic_complexity
# - empty_count
# - file_length
# - force_cast
# - force_try
# - force_unwrapping
# - function_body_length
# - function_parameter_count
# - leading_whitespace
# - legacy_constant
# - legacy_constructor
# - line_length
# - missing_docs
# - nesting
# - opening_brace
# - operator_whitespace
# - return_arrow_whitespace
# - statement_position
# - todo
# - trailing_newline
# - trailing_semicolon
# - trailing_whitespace
# - type_body_length
- type_name
- valid_docs
# - variable_name
opt_in_rules: # some rules are only opt-in
- empty_count
# - missing_docs
# Find all the available rules by running:
# swiftlint rules
# paths to include during linting.
included:
# paths to ignore during linting.
excluded:
- Carthage
- Pods
- fastlane
# configurable rules can be customized from this configuration file
force_cast: warning
force_try: warning
force_unwrapping: warning
line_length: 220 # warning
type_body_length: 300 # warning
file_length: 700
# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
type_name:
min_length: 3 # only warning
max_length: 50 # only warning
excluded: iPhone # excluded via string
variable_name:
min_length:
warning: 2
error: 1
excluded: # excluded via string array
- id
- URL
- GlobalAPIKey
- URLRequest
- URLString