Skip to content

Commit 3a02ee2

Browse files
committed
chore(lint): query_scalar in tests is the checked macro
1 parent e99cc0e commit 3a02ee2

41 files changed

Lines changed: 731 additions & 98 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎clippy.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ allow-dbg-in-tests = true
66

77
# The project's name is a word in prose, not code. `..` keeps Clippy's defaults.
88
doc-valid-idents = ["SourceOrigin", ".."]
9+
10+
# SQL is compiled against the schema with the checked macros, which `just db
11+
# prepare` caches. A statement built at run time takes an `#[expect]` saying why.
12+
disallowed-methods = [
13+
{ path = "sqlx::query_scalar", reason = "use the checked `sqlx::query_scalar!`" },
14+
]

‎crates/database/.sqlx/query-01f9557b2c159d884761e5ca5deb987c7130875aa5648f09a6c712e897ee4846.json‎

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-11e4f4c41a9053ae468d77457199fd472db4d423aa35d0d780cfc6ce6fb94450.json‎

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-14ab7dd8ca3a52036794aeb6c08d1696bdc4d5d5737cd5d8b1fdb3bbbe740cf3.json‎

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-2acc2c9ec04c4d1497d6a472a289163d5633294b7cc74f4f9817e261c80eff54.json‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-2be8fdbf18578a483e0632bdb8690287bbbbec1d013e8595b0691b30c8ff0201.json‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-2cf8e40cf77d4a479526ed734483fd6f6e48634487fa8872b05b136f5e673f92.json‎

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-2d71a8a4473936b8ff2635d20576528703555e14a7fd3b13239ebca8f61adfff.json‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-31e11264c6d13d806bbc9fbe9f587db45240ee29a304d46444e453bcb9d6c1a8.json‎

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/database/.sqlx/query-38620423b94009989df9a2fa20a74b4616c1dcef9ddc0141b542668543fef94b.json‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)