This repository has been archived by the owner on Oct 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.swiftlint.yml
63 lines (61 loc) · 1.69 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
disabled_rules: # rule identifiers to exclude from running
- file_length
- operator_whitespace
- todo
opt_in_rules: # some rules are only opt-in
- array_init
- closure_end_indentation
- closure_spacing
- contains_over_first_not_nil
- control_statement
- empty_count
- explicit_init
- explicit_top_level_acl
- explicit_type_interface
- extension_access_modifier
- fatal_error_message
- first_where
- force_unwrapping
- implicit_return
- implicitly_unwrapped_optional
- let_var_whitespace
- literal_expression_end_indentation
- multiline_arguments
- multiline_parameters
- no_grouping_extension
- number_separator
- object_literal
- operator_usage_whitespace
- overridden_super_call
- pattern_matching_keywords
- private_outlet
- private_unit_test
- prohibited_super_call
- redundant_nil_coalescing
- single_test_class
# - sorted_first_last # rule is not found in 2017-11-10 build of SwiftLint
# - sorted_imports # docs incorrect: placing comment between two imports does not reset the ordering calculation
# - trailing_closure # rule does not ignore functional methods, which SHOULD use () to enable chaining
- vertical_parameter_alignment_on_call
included: # paths to include during linting. `--path` is ignored if present.
- Sources
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- Vendor
- bin
reporter: "emoji" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)
# rule configuration
identifier_name:
excluded:
- cmd
- id
- url
- vc
line_length:
warning: 132
type_name:
max_length:
warning: 60
vertical_whitespace:
max_empty_lines: 2