mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
check for missed dbg!() statements
This works in our main code, but doesn't catch dbg!() statements in our build scripts.
This commit is contained in:
parent
eb839f0ba2
commit
0c821859c5
2 changed files with 6 additions and 0 deletions
|
@ -138,6 +138,9 @@ rust_test(
|
||||||
"tests/support/**",
|
"tests/support/**",
|
||||||
]),
|
]),
|
||||||
rustc_env = _anki_rustc_env,
|
rustc_env = _anki_rustc_env,
|
||||||
|
rustc_flags = [
|
||||||
|
"-Dclippy::dbg_macro",
|
||||||
|
],
|
||||||
deps = [
|
deps = [
|
||||||
"//rslib/cargo:env_logger",
|
"//rslib/cargo:env_logger",
|
||||||
"//rslib/cargo:linkcheck",
|
"//rslib/cargo:linkcheck",
|
||||||
|
|
|
@ -60,6 +60,9 @@ rust_library(
|
||||||
rust_test(
|
rust_test(
|
||||||
name = "i18n_tests",
|
name = "i18n_tests",
|
||||||
crate = ":anki_i18n",
|
crate = ":anki_i18n",
|
||||||
|
rustc_flags = [
|
||||||
|
"-Dclippy::dbg_macro",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
rustfmt_test(
|
rustfmt_test(
|
||||||
|
|
Loading…
Reference in a new issue