-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
65 lines (62 loc) · 1.51 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
# paths to ignore during linting. Takes precedence over `included`
excluded:
- Carthage
- Pods
- R.generated.swift
# Disabled rules
disabled_rules:
# Enabled non-default rules
opt_in_rules:
- closure_spacing
- closure_end_indentation
- contains_over_first_not_nil
- empty_count
- explicit_init
- implicitly_unwrapped_optional
- joined_default_parameter
- let_var_whitespace
- literal_expression_end_indentation
- multiline_parameters
- nimble_operator
- number_separator
- operator_usage_whitespace
- overridden_super_call
- private_action
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- sorted_first_last
- vertical_parameter_alignment_on_call
- convenience_type
- empty_string
- fallthrough
- fatal_error_message
- file_name
- force_unwrapping
- function_default_parameter_at_end
- lower_acl_than_parent
- missing_docs
- modifier_order
- multiline_arguments
- multiline_function_chains
- pattern_matching_keywords
- quick_discouraged_call
- redundant_type_annotation
- required_enum_case
- single_test_class
- strict_fileprivate
- unneeded_parentheses_in_closure_argument
- untyped_error_in_catch
- yoda_condition
# Rules customization
line_length: 140
# Due to issue #2277: https://github.com/realm/SwiftLint/issues/2277
file_name:
excluded:
- Constants.swift
- InputAccessoryViewProtocol.swift
- UIView.AnimationOptions+Extensions.swift
- Observable+Extensions.swift
- Driver+Extensions.swift
- Swinject+Extensions.swift
- BSK+Extensions.swift