cflint / CFLint

Static code analysis for CFML (a linter)
BSD 3-Clause "New" or "Revised" License
174 stars 84 forks source link

cflint ignore:QUERYPARAM_REQ does not work on multiline code #711

Open dominic-cm opened 3 years ago

dominic-cm commented 3 years ago

Hi

Just found this out recently cflint ignore:QUERYPARAM_REQ only works in the code is on a single line and the cflint ignore:QUERYPARAM_REQ is at the very end.

if the query spans multiple lines it still reports a QUERYPARAM error.

This has to be on a single line.

var Qry = queryExecute("sql query here with dynamic table name",{},{datasource=Datasource}); //cflint ignore:QUERYPARAM_REQ