-
Notifications
You must be signed in to change notification settings - Fork 2
/
.swiftlint.yml
86 lines (78 loc) · 2.18 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Reference:
# https://github.com/realm/SwiftLint/blob/master/Rules.md
disabled_rules:
# Disable rules that are in the default set
- cyclomatic_complexity # Disabled because we've got methods with lots of if nil checks
- file_name
- function_body_length
- function_parameter_count
- line_length
- no_fallthrough_only
- notification_center_detachment
- type_body_length
# The following are disabled by default anyway
- function_default_parameter_at_end # I'd like to enable this someday
- multiline_function_chains # I'd like to enable this someday
- multiline_parameters # I'd like to enable this someday
- multiline_arguments # I'd like to enable this someday
- object_literal # I'd like to enable this someday
- pattern_matching_keywords # I'd like to enable this someday
- private_action # I'd like to enable this someday
- private_outlet # I'd like to enable this someday
- single_test_class # I'd like to enable this someday
- todo # I'd like to enable this someday
- unavailable_function # I'd like to enable this someday
- xctfail_message # I'd like to enable this someday
opt_in_rules:
# Enable rules not in the default set
- anyobject_protocol
- array_init
- attributes
- closure_spacing
- conditional_returns_on_newline
- contains_over_first_not_nil
- convenience_type
- empty_count
- empty_string
- empty_xctest_method
- explicit_init
- extension_access_modifier # Maybe?
- fallthrough
- fatal_error_message
- file_name # Maybe?
- first_where
- joined_default_parameter
- lower_acl_than_parent
- modifier_order
- overridden_super_call
- prohibited_super_call
- redundant_nil_coalescing
- required_enum_case # Maybe?
- sorted_first_last
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- yoda_condition
included:
- Flapjack
- Example
- Tests
colon:
apply_to_dictionaries: true
conditional_returns_on_newline:
# applies only to if-statements
if_only: true
file_length:
warning: 1000
error: 5000
identifier_name:
excluded:
- qa
- i
large_tuple:
warning: 4
error: 5
type_name:
excluded:
- T
vertical_whitespace:
max_empty_lines: 2