5app / eslint-plugin-sequel

SQL eslint rules to perform: Static analysis to find SQL injection vulnerabilities; Syntax formatting
https://www.npmjs.com/package/eslint-plugin-sequel
1 stars 0 forks source link

Disallowed functions #86

Open MrSwitch opened 1 month ago

MrSwitch commented 1 month ago

Some function are non-standard between SQL platforms and versions. As well as some being deprecated.

e.g.

MySQL's GROUP_CONCAT which is used to aggregate results is similar to the standard JSON_ARRAYAGG.

Provide a rule to pass a list of disallowed functions.

"disallow_functions": [2,
    {
        "functionNames": ["GROUP_CONCAT"]
    }
]

This is going to be useful in protecting from regressions in 5app/hub#14383

5app-Machine commented 1 month ago

:tada: This issue has been resolved in version 1.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: