forked from CodeEditApp/CodeEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
40 lines (35 loc) · 820 Bytes
/
.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
disabled_rules:
- todo
- trailing_comma
- nesting
type_name:
excluded:
- ID
identifier_name:
allowed_symbols: ["$", "_"]
excluded:
- id
- vc
# paths to ignore during linting.
excluded:
- CodeEditModules/.build # Where Swift Package Manager checks out dependency sources
- DerivedData
opt_in_rules:
- attributes
- empty_count
- closure_spacing
- contains_over_first_not_nil
- missing_docs
# - implicit_return
- modifier_order
- convenience_type
- pattern_matching_keywords
- multiline_parameters_brackets
- multiline_arguments_brackets
custom_rules:
spaces_over_tabs:
included: ".*\\.swift"
name: "Spaces over Tabs"
regex: "\t"
message: "Prefer spaces for indents over tabs. See Xcode setting: 'Text Editing' -> 'Indentation'"
severity: warning