-
Notifications
You must be signed in to change notification settings - Fork 11
/
.swiftlint.yml
93 lines (88 loc) · 2.25 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
87
88
89
90
91
92
93
disabled_rules:
- todo
- trailing_comma
opt_in_rules:
# performance
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- empty_collection_literal
- empty_count
- empty_string
- first_where
- flatmap_over_map_reduce
- last_where
- reduce_into
- sorted_first_last
# idiomatic
- explicit_init
- fallthrough
- force_unwrapping
- function_default_parameter_at_end
- implicitly_unwrapped_optional
- redundant_nil_coalescing
- convenience_type
- extension_access_modifier
- fatal_error_message
- file_name
- file_name_no_space
- legacy_multiple
- legacy_random
- pattern_matching_keywords
- redundant_type_annotation
- toggle_bool
- unavailable_function
- xct_specific_matcher
#lint
- overridden_super_call
- empty_xctest_method
- identical_operands
- lower_acl_than_parent
- override_in_extension
- quick_discouraged_call
- quick_discouraged_focused_test
- yoda_condition
#style
- attributes
- closure_end_indentation
- closure_spacing
- collection_alignment
- implicit_return
# - indentation_width # causing a lot of false positives, see: https://github.com/realm/SwiftLint/issues/3046
# - literal_expression_end_indentation # causing error 'bus error' when running autocorrect
- modifier_order
- multiline_arguments
- multiline_arguments_brackets
- multiline_literal_brackets
- multiline_function_chains
- multiline_parameters
- multiline_parameters_brackets
- number_separator
- operator_usage_whitespace
- optional_enum_case_matching
- single_test_class
- sorted_imports
- switch_case_on_newline
- trailing_closure # in case of error 'illegal instruction: 4 swiftlint', comment this rule out, as this seems to crash SourceKit https://github.com/realm/SwiftLint/issues/2793
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
deployment_target:
iOS_deployment_target: 14.0
tvOS_deployment_target: 14.0
line_length:
ignores_urls: true
identifier_name:
min_length:
error: 3
excluded:
- Ads
- Ad
- ad
- id
- to
- on
file_length:
warning: 500