Files
codeql/python/ql/examples/snippets/too_many_params.ql
2019-07-26 17:47:11 +02:00

15 lines
275 B
Plaintext

/**
* @id py/examples/too-many-params
* @name Functions with many parameters
* @description Finds functions with more than 7 parameters
* @tags function
* parameter
* argument
*/
import python
from Function fcn
where count(fcn.getAnArg()) > 7
select fcn