mirror of
https://github.com/navidrome/navidrome.git
synced 2026-12-04 19:06:19 +00:00
sqlquote flagged any quoted splice in a file that imported a SQL package,
so CSV output, log text, FTS5 phrases and ORDER BY mappings needed a nolint.
It now follows the string up the expression and through local variables,
and reports only when it becomes an argument of a database/sql, squirrel or
dbx call, an argument of a call returning a type with ToSql, or the result
of a ToSql method. strings.ReplaceAll(x, q, qq) counts as escaped.
All nolint:sqlquote comments are gone, and the scanner warnings keep their
'%s' text. On 62256712f, before the id and JSON path fixes, it reports all
12 sites those fixes changed, and nothing else.
Signed-off-by: Deluan <deluan@navidrome.org>