Open ITsvetkoFF opened 3 years ago
I have thought about it. We could probably add them to avoid-injections
without too much hassle. Do you have any sample code that we can use as test cases? 🤗
not something I can share :)
adding to avoid-injections
is simple but may be a breaking change for current users of a rule.
as I understand rules can include some parameters - so ideally usage could be
{
"plugins": ["knex"],
"rules": {
"knex/avoid-injections": [ "error", {includeOrderBy: true, includeHaving: true, includeGroupBy: true}
}
}
(if you want some help in form of PR just let me know)
Thanks, another one to cover would be orWhereRaw
Have you considered other
Raw
methods to be added (probably as separate rules)? Any ideas? :)