A string is converted to a date without a format mask, so the session's settings decide
What it finds
TO_DATE('01/02/2024') without a format mask reads the string by the session's NLS_DATE_FORMAT, so the same code gives different dates, or fails, depending on who runs it. A format mask makes the conversion mean one thing.
From the rule's source, conversion_without_format.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/sql:conversion-without-format" = "warning"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:conversion-without-format shows the same in the terminal. Found a false positive? Report it.