forked from kickstarter/ios-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
95 lines (95 loc) · 2.29 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
disabled_rules:
- block_based_kvo # swift 3.2
- class_delegate_protocol
- closing_brace
- closure_parameter_position
- colon
- comma
- compiler_protocol_init
- control_statement
- cyclomatic_complexity
- discarded_notification_center_observer
- discouraged_direct_init
- dynamic_inline
- empty_enum_arguments
- empty_parameters
- empty_parentheses_with_trailing_closure
- file_length
- for_where
- force_cast
- force_try
- function_body_length
- function_parameter_count
- generic_type_name
- identifier_name
- implicit_getter
- inert_defer
- is_disjoint
- large_tuple
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_hashing
- legacy_nsgeometry_functions
- mark
- multiple_closures_with_trailing_closure
- nesting
- no_fallthrough_only
- notification_center_detachment
- opening_brace
- operator_whitespace
- private_outlet
- private_over_fileprivate
- private_unit_test
- protocol_property_accessors_order
- redundant_discardable_let
- redundant_objc_attribute
- redundant_optional_initialization
- redundant_set_access_control
- redundant_string_enum_value
- redundant_void_return
- return_arrow_whitespace
- shorthand_operator
- statement_position
- superfluous_disable_command
- switch_case_alignment
- syntactic_sugar
- todo
- trailing_newline
- trailing_semicolon
- trailing_whitespace
- type_body_length
- type_name
- trailing_comma
- unneeded_break_in_switch
- unused_closure_parameter
- unused_enumerated
- unused_optional_binding
- valid_ibinspectable
- vertical_parameter_alignment
- vertical_whitespace
- void_return
- weak_delegate
- xctfail_message
line_length: 110
excluded:
- Carthage/
- Frameworks/
- Kickstarter-iOS.playground/
- Library/Strings.swift
- bin/strings.swift
- bin/StringsScript/Sources/StringsScriptCore/Secrets.swift
- vendor
reporter: "xcode"
custom_rules:
localized_lensing:
name: "Localized Lensing"
regex: '\.~\s+Strings\s*\.'
message: "Capture calls to `Strings` functions using `%~ { _ in Strings... }`"
severity: error
record_mode_prohibited:
name: "Record Mode Prohibited"
regex: "recordMode = true"
message: "Do not use `recordMode = true`."
severity: warning