File tree 5 files changed +25
-31
lines changed
5 files changed +25
-31
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,15 @@ jobs:
30
30
run : ./ci/style.sh
31
31
32
32
clippy :
33
- name : Clippy check
34
- runs-on : ubuntu-24.04
33
+ name : Clippy on ${{ matrix.os }}
34
+ strategy :
35
+ matrix :
36
+ os : [ubuntu-24.04, macos-14, windows-2022]
37
+ runs-on : ${{ matrix.os }}
35
38
timeout-minutes : 10
36
39
steps :
37
40
- uses : actions/checkout@v4
41
+ - run : rustup update stable --no-self-update
38
42
- uses : Swatinem/rust-cache@v2
39
43
# Here we use the latest stable Rust toolchain already installed by GitHub
40
44
# Ideally we should run it for every target, but we cannot rely on unstable toolchains
@@ -299,7 +303,8 @@ jobs:
299
303
- verify_build
300
304
- ctest_msrv
301
305
- docs
302
- # Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
306
+ - clippy
307
+ # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
303
308
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
304
309
# dependencies fails.
305
310
if : always() # make sure this is never "skipped"
Original file line number Diff line number Diff line change @@ -143,20 +143,19 @@ members = [
143
143
" libc-test" ,
144
144
]
145
145
146
- #
147
- # TODO: These should be renamed as `[workspace.lints.*]` once MSRV is abve 1.64
146
+ # FIXME(msrv): These should be renamed as `[workspace.lints.*]` once MSRV is above 1.64
148
147
# This way all crates can use it with `[lints] workspace=true` section
149
- #
150
148
151
149
[lints .rust ]
152
- # TODO : make ident usage consistent in each file
150
+ # FIXME(cleanup) : make ident usage consistent in each file
153
151
unused_qualifications = " allow"
154
152
155
153
[lints .clippy ]
156
- # TODO: all these are default lints and should probably be fixed
154
+ missing_safety_doc = " allow"
155
+
156
+ # FIXME(clippy): all these are default lints and should probably be fixed
157
157
identity_op = " allow"
158
158
if_same_then_else = " allow"
159
- missing_safety_doc = " allow"
160
159
non_minimal_cfg = " allow"
161
160
precedence = " allow"
162
161
redundant_field_names = " allow"
Original file line number Diff line number Diff line change @@ -25,20 +25,14 @@ test = false
25
25
name = " t1_cxx"
26
26
test = false
27
27
28
- [[bin ]]
29
- name = " t2_cxx"
30
- test = false
31
-
28
+ # FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`
29
+ # once MSRV is above 1.64 and replaced with `[lints] workspace=true`
32
30
#
33
- # TODO: These should be moved to the root Cargo.toml as `[workspace.lints.*]` once MSRV is abve 1.64
34
- # replace it with `[lints] workspace=true`
35
- #
36
-
37
31
[lints .rust ]
38
- # TODO : make ident usage consistent in each file
32
+ # FIXME(cleanup) : make ident usage consistent in each file
39
33
unused_qualifications = " allow"
40
34
41
35
[lints .clippy ]
42
- # TODO : fix these, and enable pedantic lints with needed exceptions
36
+ # FIXME(clippy) : fix these
43
37
match_like_matches_macro = " allow"
44
38
eq_op = " allow"
Original file line number Diff line number Diff line change @@ -14,17 +14,15 @@ cc = "1.0.1"
14
14
rustc_version = " 0.4"
15
15
indoc = " 2.0.6"
16
16
17
+ # FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`
18
+ # once MSRV is above 1.64 and replaced with `[lints] workspace=true`
17
19
#
18
- # TODO: These should be moved to the root Cargo.toml as `[workspace.lints.*]` once MSRV is abve 1.64
19
- # replace it with `[lints] workspace=true`
20
- #
21
-
22
20
[lints .rust ]
23
- # TODO : make ident usage consistent in each file
21
+ # FIXME(cleanup) : make ident usage consistent in each file
24
22
unused_qualifications = " allow"
25
23
26
24
[lints .clippy ]
27
- # TODO : fix these, and enable pedantic lints with needed exceptions
25
+ # FIXME(clippy) : fix these
28
26
doc_lazy_continuation = " allow"
29
27
if_same_then_else = " allow"
30
28
needless_borrow = " allow"
Original file line number Diff line number Diff line change @@ -103,17 +103,15 @@ name = "style_tests"
103
103
path = " test/style_tests.rs"
104
104
harness = true
105
105
106
+ # FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`
107
+ # once MSRV is above 1.64 and replaced with `[lints] workspace=true`
106
108
#
107
- # TODO: These should be moved to the root Cargo.toml as `[workspace.lints.*]` once MSRV is abve 1.64
108
- # replace it with `[lints] workspace=true`
109
- #
110
-
111
109
[lints .rust ]
112
- # TODO : make ident usage consistent in each file
110
+ # FIXME(cleanup) : make ident usage consistent in each file
113
111
unused_qualifications = " allow"
114
112
115
113
[lints .clippy ]
116
- # TODO : fix these, and enable pedantic lints with needed exceptions
114
+ # FIXME(clippy) : fix these
117
115
needless_return = " allow"
118
116
comparison_to_empty = " allow"
119
117
unused_io_amount = " allow"
You can’t perform that action at this time.
0 commit comments