-
Notifications
You must be signed in to change notification settings - Fork 503
314 lines (309 loc) · 12.3 KB
/
clippy.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
name: clippy
on:
pull_request:
push:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
branches:
- master
env:
RUSTFLAGS: -Dwarnings
jobs:
check:
runs-on: windows-2022
strategy:
matrix:
include:
- version: nightly
target: x86_64-pc-windows-msvc
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update toolchain
run: rustup update --no-self-update ${{ matrix.version }} && rustup default ${{ matrix.version }}-${{ matrix.target }}
- name: Add toolchain target
run: rustup target add ${{ matrix.target }}
- name: Install clippy
run: rustup component add clippy
- name: Fix environment
uses: ./.github/actions/fix-environment
- name: Clippy cppwinrt
run: cargo clippy -p cppwinrt
- name: Clippy no_std
run: cargo clippy -p no_std
- name: Clippy riddle
run: cargo clippy -p riddle
- name: Clippy sample_bits
run: cargo clippy -p sample_bits
- name: Clippy sample_com_uri
run: cargo clippy -p sample_com_uri
- name: Clippy sample_component_hello_world
run: cargo clippy -p sample_component_hello_world
- name: Clippy sample_component_json_validator
run: cargo clippy -p sample_component_json_validator
- name: Clippy sample_component_json_validator_client
run: cargo clippy -p sample_component_json_validator_client
- name: Clippy sample_component_json_validator_winrt
run: cargo clippy -p sample_component_json_validator_winrt
- name: Clippy sample_component_json_validator_winrt_client
run: cargo clippy -p sample_component_json_validator_winrt_client
- name: Clippy sample_component_json_validator_winrt_client_cpp
run: cargo clippy -p sample_component_json_validator_winrt_client_cpp
- name: Clippy sample_consent
run: cargo clippy -p sample_consent
- name: Clippy sample_core_app
run: cargo clippy -p sample_core_app
- name: Clippy sample_counter
run: cargo clippy -p sample_counter
- name: Clippy sample_counter_sys
run: cargo clippy -p sample_counter_sys
- name: Clippy sample_create_window
run: cargo clippy -p sample_create_window
- name: Clippy sample_create_window_sys
run: cargo clippy -p sample_create_window_sys
- name: Clippy sample_credentials
run: cargo clippy -p sample_credentials
- name: Clippy sample_data_protection
run: cargo clippy -p sample_data_protection
- name: Clippy sample_dcomp
run: cargo clippy -p sample_dcomp
- name: Clippy sample_delay_load
run: cargo clippy -p sample_delay_load
- name: Clippy sample_delay_load_sys
run: cargo clippy -p sample_delay_load_sys
- name: Clippy sample_device_watcher
run: cargo clippy -p sample_device_watcher
- name: Clippy sample_direct2d
run: cargo clippy -p sample_direct2d
- name: Clippy sample_direct3d12
run: cargo clippy -p sample_direct3d12
- name: Clippy sample_enum_windows
run: cargo clippy -p sample_enum_windows
- name: Clippy sample_enum_windows_sys
run: cargo clippy -p sample_enum_windows_sys
- name: Clippy sample_kernel_event
run: cargo clippy -p sample_kernel_event
- name: Clippy sample_memory_buffer
run: cargo clippy -p sample_memory_buffer
- name: Clippy sample_message_box
run: cargo clippy -p sample_message_box
- name: Clippy sample_message_box_sys
run: cargo clippy -p sample_message_box_sys
- name: Clippy sample_ocr
run: cargo clippy -p sample_ocr
- name: Clippy sample_overlapped
run: cargo clippy -p sample_overlapped
- name: Clippy sample_privileges
run: cargo clippy -p sample_privileges
- name: Clippy sample_privileges_sys
run: cargo clippy -p sample_privileges_sys
- name: Clippy sample_rss
run: cargo clippy -p sample_rss
- name: Clippy sample_shell
run: cargo clippy -p sample_shell
- name: Clippy sample_simple
run: cargo clippy -p sample_simple
- name: Clippy sample_spellchecker
run: cargo clippy -p sample_spellchecker
- name: Clippy sample_task_dialog
run: cargo clippy -p sample_task_dialog
- name: Clippy sample_task_dialog_sys
run: cargo clippy -p sample_task_dialog_sys
- name: Clippy sample_thread_pool_work
run: cargo clippy -p sample_thread_pool_work
- name: Clippy sample_thread_pool_work_sys
run: cargo clippy -p sample_thread_pool_work_sys
- name: Clippy sample_uiautomation
run: cargo clippy -p sample_uiautomation
- name: Clippy sample_wmi
run: cargo clippy -p sample_wmi
- name: Clippy sample_xml
run: cargo clippy -p sample_xml
- name: Clippy test_agile
run: cargo clippy -p test_agile
- name: Clippy test_agile_reference
run: cargo clippy -p test_agile_reference
- name: Clippy test_alternate_success_code
run: cargo clippy -p test_alternate_success_code
- name: Clippy test_arch
run: cargo clippy -p test_arch
- name: Clippy test_arch_feature
run: cargo clippy -p test_arch_feature
- name: Clippy test_array
run: cargo clippy -p test_array
- name: Clippy test_bcrypt
run: cargo clippy -p test_bcrypt
- name: Clippy test_bstr
run: cargo clippy -p test_bstr
- name: Clippy test_calling_convention
run: cargo clippy -p test_calling_convention
- name: Clippy test_cfg_generic
run: cargo clippy -p test_cfg_generic
- name: Clippy test_collections
run: cargo clippy -p test_collections
- name: Clippy test_component
run: cargo clippy -p test_component
- name: Clippy test_component_client
run: cargo clippy -p test_component_client
- name: Clippy test_const_fields
run: cargo clippy -p test_const_fields
- name: Clippy test_const_params
run: cargo clippy -p test_const_params
- name: Clippy test_const_ptrs
run: cargo clippy -p test_const_ptrs
- name: Clippy test_core
run: cargo clippy -p test_core
- name: Clippy test_debug
run: cargo clippy -p test_debug
- name: Clippy test_debugger_visualizer
run: cargo clippy -p test_debugger_visualizer
- name: Clippy test_deprecated
run: cargo clippy -p test_deprecated
- name: Clippy test_dispatch
run: cargo clippy -p test_dispatch
- name: Clippy test_does_not_return
run: cargo clippy -p test_does_not_return
- name: Clippy test_enums
run: cargo clippy -p test_enums
- name: Clippy test_error
run: cargo clippy -p test_error
- name: Clippy test_event
run: cargo clippy -p test_event
- name: Clippy test_extensions
run: cargo clippy -p test_extensions
- name: Clippy test_handles
run: cargo clippy -p test_handles
- name: Clippy test_helpers
run: cargo clippy -p test_helpers
- name: Clippy test_implement
run: cargo clippy -p test_implement
- name: Clippy test_implement_core
run: cargo clippy -p test_implement_core
- name: Clippy test_interface
run: cargo clippy -p test_interface
- name: Clippy test_interface_core
run: cargo clippy -p test_interface_core
- name: Clippy test_interop
run: cargo clippy -p test_interop
- name: Clippy test_lib
run: cargo clippy -p test_lib
- name: Clippy test_linux
run: cargo clippy -p test_linux
- name: Clippy test_literals
run: cargo clippy -p test_literals
- name: Clippy test_match
run: cargo clippy -p test_match
- name: Clippy test_matrix3x2
run: cargo clippy -p test_matrix3x2
- name: Clippy test_metadata
run: cargo clippy -p test_metadata
- name: Clippy test_msrv
run: cargo clippy -p test_msrv
- name: Clippy test_no_use
run: cargo clippy -p test_no_use
- name: Clippy test_noexcept
run: cargo clippy -p test_noexcept
- name: Clippy test_not_dll
run: cargo clippy -p test_not_dll
- name: Clippy test_query_signature
run: cargo clippy -p test_query_signature
- name: Clippy test_readme
run: cargo clippy -p test_readme
- name: Clippy test_registry
run: cargo clippy -p test_registry
- name: Clippy test_reserved
run: cargo clippy -p test_reserved
- name: Clippy test_resources
run: cargo clippy -p test_resources
- name: Clippy test_result
run: cargo clippy -p test_result
- name: Clippy test_return_handle
run: cargo clippy -p test_return_handle
- name: Clippy test_return_struct
run: cargo clippy -p test_return_struct
- name: Clippy test_riddle
run: cargo clippy -p test_riddle
- name: Clippy test_standalone
run: cargo clippy -p test_standalone
- name: Clippy test_string_param
run: cargo clippy -p test_string_param
- name: Clippy test_strings
run: cargo clippy -p test_strings
- name: Clippy test_structs
run: cargo clippy -p test_structs
- name: Clippy test_sys
run: cargo clippy -p test_sys
- name: Clippy test_targets
run: cargo clippy -p test_targets
- name: Clippy test_unions
run: cargo clippy -p test_unions
- name: Clippy test_variant
run: cargo clippy -p test_variant
- name: Clippy test_wdk
run: cargo clippy -p test_wdk
- name: Clippy test_weak
run: cargo clippy -p test_weak
- name: Clippy test_weak_ref
run: cargo clippy -p test_weak_ref
- name: Clippy test_win32
run: cargo clippy -p test_win32
- name: Clippy test_win32_arrays
run: cargo clippy -p test_win32_arrays
- name: Clippy test_window_long
run: cargo clippy -p test_window_long
- name: Clippy test_winrt
run: cargo clippy -p test_winrt
- name: Clippy tool_bindings
run: cargo clippy -p tool_bindings
- name: Clippy tool_gnu
run: cargo clippy -p tool_gnu
- name: Clippy tool_lib
run: cargo clippy -p tool_lib
- name: Clippy tool_license
run: cargo clippy -p tool_license
- name: Clippy tool_msvc
run: cargo clippy -p tool_msvc
- name: Clippy tool_standalone
run: cargo clippy -p tool_standalone
- name: Clippy tool_yml
run: cargo clippy -p tool_yml
- name: Clippy windows
run: cargo clippy -p windows
- name: Clippy windows-bindgen
run: cargo clippy -p windows-bindgen
- name: Clippy windows-core
run: cargo clippy -p windows-core
- name: Clippy windows-implement
run: cargo clippy -p windows-implement
- name: Clippy windows-interface
run: cargo clippy -p windows-interface
- name: Clippy windows-metadata
run: cargo clippy -p windows-metadata
- name: Clippy windows-registry
run: cargo clippy -p windows-registry
- name: Clippy windows-result
run: cargo clippy -p windows-result
- name: Clippy windows-strings
run: cargo clippy -p windows-strings
- name: Clippy windows-sys
run: cargo clippy -p windows-sys
- name: Clippy windows-targets
run: cargo clippy -p windows-targets
- name: Clippy windows-version
run: cargo clippy -p windows-version
- name: Clippy windows_aarch64_gnullvm
run: cargo clippy -p windows_aarch64_gnullvm
- name: Clippy windows_aarch64_msvc
run: cargo clippy -p windows_aarch64_msvc
- name: Clippy windows_i686_gnu
run: cargo clippy -p windows_i686_gnu
- name: Clippy windows_i686_gnullvm
run: cargo clippy -p windows_i686_gnullvm
- name: Clippy windows_i686_msvc
run: cargo clippy -p windows_i686_msvc
- name: Clippy windows_x86_64_gnu
run: cargo clippy -p windows_x86_64_gnu
- name: Clippy windows_x86_64_gnullvm
run: cargo clippy -p windows_x86_64_gnullvm
- name: Clippy windows_x86_64_msvc
run: cargo clippy -p windows_x86_64_msvc