-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
81 lines (73 loc) · 1.53 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
included:
- Sources
- Tests
opt_in_rules:
- attributes
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- discouraged_object_literal
- discouraged_optional_boolean
- empty_count
- empty_string
- file_header
- file_name
- file_name_no_space
- first_where
- flatmap_over_map_reduce
- force_unwrapping
- identical_operands
- implicit_return
- implicitly_unwrapped_optional
- missing_docs
- number_separator
- operator_usage_whitespace
- overridden_super_call
- prohibited_interface_builder
- sorted_first_last
- toggle_bool
- weak_delegate
- yoda_condition
analyzer_rules:
- capture_variable
- typesafe_array_init
- unused_declaration
- unused_import
identifier_name:
min_length: 2
excluded:
- r
- g
- b
- a
- c
- x
- y
- t
excluded:
- ".build"
file_header:
required_pattern: |
\/\/
\/\/ SWIFTLINT_CURRENT_FILENAME
\/\/ (SmoothGradient|SmoothGradientTests)
\/\/
\/\/ Copyright \(c\) \d{4}(-\d{4})? Ramon Torres
\/\/
\/\/ This file is part of SmoothGradient which is released under the MIT license\.
\/\/ See the LICENSE file in the root directory of this source tree for full details\.
\/\/
file_name:
suffix_pattern: "[+-]{1}.*"
line_length:
warning: 130
error: 150
ignores_urls: true
ignores_comments: true
implicit_return:
included:
- closure
- getter