SQL

SQL

Made by DeepSource

Mixed comma style found SQL-L019

Style
Minor

This issue is raised for Leading / Trailing comma enforcement. By default the analyzer prefers trailing commas, however it is configurable for leading commas in the .deepsource.toml file. Whichever option you chose it does expect you to be consistent.

Bad practice

There is a mixture of leading and trailing commas.

SELECT
    a
    , b,
    c
FROM foo

Recommended

SELECT
    a,
    b,
    c
FROM foo

-- Alternatively, set the configuration file to 'leading'
-- and then the following would be acceptable:

SELECT
    a
    , b
    , c
FROM foo