File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ jobs:
350
350
- name : Check formatting with cargo fmt
351
351
run : make cargo-fmt
352
352
- name : Lint code for quality and style with Clippy
353
- run : make lint
353
+ run : make lint-full
354
354
- name : Certify Cargo.lock freshness
355
355
run : git diff --exit-code Cargo.lock
356
356
- name : Typecheck benchmark code without running it
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ test-full: cargo-fmt test-release test-debug test-ef test-exec-engine
204
204
# Lints the code for bad style and potentially unsafe arithmetic using Clippy.
205
205
# Clippy lints are opt-in per-crate for now. By default, everything is allowed except for performance and correctness lints.
206
206
lint :
207
- RUSTFLAGS= " -C debug-assertions=no $( RUSTFLAGS ) " cargo clippy --workspace --benches --tests $(EXTRA_CLIPPY_OPTS ) --features " $( TEST_FEATURES) " -- \
207
+ cargo clippy --workspace --benches --tests $(EXTRA_CLIPPY_OPTS ) --features " $( TEST_FEATURES) " -- \
208
208
-D clippy::fn_to_numeric_cast_any \
209
209
-D clippy::manual_let_else \
210
210
-D clippy::large_stack_frames \
@@ -220,6 +220,10 @@ lint:
220
220
lint-fix :
221
221
EXTRA_CLIPPY_OPTS=" --fix --allow-staged --allow-dirty" $(MAKE ) lint
222
222
223
+ # Also run the lints on the optimized-only tests
224
+ lint-full :
225
+ RUSTFLAGS=" -C debug-assertions=no $( RUSTFLAGS) " $(MAKE ) lint
226
+
223
227
# Runs the makefile in the `ef_tests` repo.
224
228
#
225
229
# May download and extract an archive of test vectors from the ethereum
You can’t perform that action at this time.
0 commit comments