-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy path.swiftlint.yml
More file actions
85 lines (79 loc) 路 2.06 KB
/
Copy path.swiftlint.yml
File metadata and controls
85 lines (79 loc) 路 2.06 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
excluded:
- Scripts
- Sources/StreamChat/Generated
- Sources/StreamChatCommonUI/Generated
- Sources/StreamChatUI/StreamSwiftyGif
- Sources/StreamChatUI/StreamNuke
- Sources/StreamChat/StreamStarscream
- Sources/StreamChatUI/StreamDifferenceKit
- Tests
- Pods
- .build
- spm_cache
- vendor/bundle
- derived_data
only_rules:
- attribute_name_spacing
- closing_brace
- colon
- comma
- comment_spacing
- control_statement
- custom_rules
- cyclomatic_complexity
- duplicate_imports
- empty_enum_arguments
- empty_parameters
- empty_parentheses_with_trailing_closure
- file_name_no_space
- joined_default_parameter
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_nsgeometry_functions
- mark
- multiline_arguments
- no_space_in_method_call
- prefer_type_checking
- private_over_fileprivate
- private_unit_test
- protocol_property_accessors_order
- redundant_discardable_let
- redundant_objc_attribute
- redundant_optional_initialization
- redundant_sendable
- redundant_void_return
- return_arrow_whitespace
- syntactic_sugar
- toggle_bool
- trailing_comma
- trailing_newline
- trailing_semicolon
- unneeded_break_in_switch
- unneeded_override
- unused_closure_parameter
- unused_control_flow_label
- unused_import
- vertical_whitespace
- void_return
multiline_arguments:
only_enforce_after_first_closure_on_first_line: true
file_name_no_space:
severity: error
cyclomatic_complexity:
ignores_case_statements: true
warning: 30
error: 35
custom_rules:
regular_constraints_forbidden:
included: "Sources/StreamChatUI"
regex: "(.constraint)\\("
capture_group: 1
match_kinds:
- identifier
message: "Regular constraint methods are forbidden. Use `.pin()` instead."
coredata_date_forbidden:
included: "Sources/StreamChat/Database/DTOs"
regex: "@NSManaged(| \\S*)* var \\S*: (NS)?Date"
message: "Please define dates as DBDate instead of Date or NSDate. Check the definition of DBDate for more information"