-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
55 lines (50 loc) · 1.13 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
# Find all the available rules by running:
# swiftlint rules
#
# rule identifiers to exclude from running
disabled_rules:
- force_try
- todo
- trailing_whitespace
- type_name
- large_tuple
- redundant_optional_initialization
- empty_parentheses_with_trailing_closure
- cyclomatic_complexity
- superfluous_disable_command
- force_cast
- unused_closure_parameter
#- operator_whitespace
#- vertical_whitespace
#- variable_name
#- function_parameter_count
#- type_body_length
#- operator_whitespace
#- colon
#- comma
#- control_statement
# paths to ignore during linting. Takes precedence over `included`.
excluded:
- Carthage
- SmartSpender/Code/Strings.swift
# configurable rules can be customized from this configuration file
line_length:
warning: 260
error: 400
type_body_length:
warning: 300
error: 500
function_body_length:
warning: 80
error: 120
identifier_name:
max_length:
warning: 50
error: 80
nesting:
type_level:
warning: 4
error: 6
statement_level:
warning: 4
error: 6