-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
64 lines (53 loc) · 1.14 KB
/
Copy path.swiftlint.yml
File metadata and controls
64 lines (53 loc) · 1.14 KB
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
# SwiftLint — configuration BamPocket
# Doc : https://github.com/realm/SwiftLint
included:
- BambuddyPocket
- Packages/BambuddyPocketKit/Sources
excluded:
- Packages/BambuddyPocketKit/.build
- "**/.build"
- DerivedData
- "**/*.generated.swift"
opt_in_rules:
- empty_count
- empty_string
- first_where
- contains_over_first_not_nil
- sorted_first_last
- force_unwrapping
- implicitly_unwrapped_optional
- closure_spacing
- explicit_init
- redundant_nil_coalescing
- operator_usage_whitespace
- overridden_super_call
- prohibited_super_call
- vertical_whitespace_closing_braces
- toggle_bool
- last_where
- legacy_multiple
disabled_rules:
- todo # TODO/FIXME autorisés pendant le dev
- trailing_comma
line_length:
warning: 120
error: 160
ignores_urls: true
ignores_comments: true
identifier_name:
min_length: 2
excluded: [id, db, ws, ip, x, y, z, ok, to]
type_name:
min_length: 3
max_length: 50
function_body_length:
warning: 80
error: 150
file_length:
warning: 500
error: 1000
cyclomatic_complexity:
warning: 15
force_cast: error
force_try: error
force_unwrapping: error