-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
96 lines (90 loc) · 2.12 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
whitelist_rules:
- closing_brace
- control_statement
- custom_rules
- cyclomatic_complexity
- dynamic_inline
- empty_count
- empty_parameters
- file_length
- force_cast
- force_try
- force_unwrapping
- function_body_length
- function_parameter_count
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_nsgeometry_functions
- line_length
- mark
- nesting
- operator_whitespace
- private_unit_test
- return_arrow_whitespace
- statement_position
- trailing_newline
- trailing_semicolon
- type_body_length
- type_name
- unused_enumerated
- valid_ibinspectable
- colon
- closure_spacing
- comma
- empty_parentheses_with_trailing_closure
- implicit_return
- opening_brace
- operator_usage_whitespace
- redundant_discardable_let
- redundant_nil_coalescing
- redundant_optional_initialization
- redundant_void_return
- trailing_comma
- unused_closure_parameter
- unneeded_parentheses_in_closure_argument
- void_return
- identifier_name
# Please leave these commented out lines below here. We can periodically turn off the whitelist and enable
# these to check for new rules to use.
# disabled_rules: # rule identifiers to exclude from running
# - trailing_whitespace
# - vertical_whitespace # but we should turn this on at some point
# - valid_docs # until we have more time and decide on how best to document
# - todo
#
# # to be enabled when we have time
# - implicit_getter
# - weak_delegate
# - syntactic_sugar
# - redundant_string_enum_value
# - closure_parameter_position
#
# opt_in_rules:
# - empty_count
# - force_unwrapping
included: # paths to include during linting. `--path` is ignored if present. takes precendence over `excluded`.
-
excluded: # paths to ignore during linting. overridden by `included`.
- Carthage
- DerivedData
- Pods
- Submodules
- ImageGalleryTests
- .git
line_length:
- 160
- 200
type_body_length:
- 300 # warning
- 400 # error
function_body_length:
- 60
- 120
identifier_name:
max_length:
warning: 50
error: 60
excluded:
- id