-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathglobalswiftlint.yml
66 lines (56 loc) · 2.66 KB
/
globalswiftlint.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
#######################################################################################################################
#
# Global SwiftLint Config
# CodeEditApp
#
#######################################################################################################################
#
# This global configuration is used across all repos in the CodeEditApp organization.
#
# They are loaded using:
# parent_config: https://<url-to-this-file>.yml
#
# A repo can in certain circumstances override some rules or declare project specific custom rules.
#
#######################################################################################################################
# The following default rules are disabled
disabled_rules:
- todo
- trailing_comma
- nesting
#######################################################################################################################
# The following opt-in rules are enabled
opt_in_rules:
- closure_spacing # https://realm.github.io/SwiftLint/closure_spacing.html
- contains_over_first_not_nil # https://realm.github.io/SwiftLint/contains_over_first_not_nil.html
- convenience_type # https://realm.github.io/SwiftLint/convenience_type.html
- empty_count # https://realm.github.io/SwiftLint/empty_count.html
- missing_docs # https://realm.github.io/SwiftLint/missing_docs.html
- modifier_order # https://realm.github.io/SwiftLint/modifier_order.html
- multiline_arguments_brackets # https://realm.github.io/SwiftLint/multiline_arguments_brackets.html
- multiline_parameters_brackets # https://realm.github.io/SwiftLint/multiline_parameters_brackets.html
- pattern_matching_keywords # https://realm.github.io/SwiftLint/pattern_matching_keywords.html
#######################################################################################################################
# Paths to ignore during linting.
excluded:
- .build
- DerivedData
#######################################################################################################################
# Exclude `id` and `vc` from the identifier_name rule
identifier_name:
excluded:
- id
- vc
# Exclude `ID` from the type_name rule
type_name:
excluded:
- ID
#######################################################################################################################
# Custom Rules
custom_rules:
spaces_over_tabs:
included: ".*\\.swift"
message: "Prefer spaces for indents over tabs. See Xcode setting: 'Text Editing' -> 'Indentation'"
name: "Spaces over Tabs"
regex: "\t"
severity: warning