Files
codeql/go/ql/examples/snippets/fieldwrite.ql
2022-05-20 10:07:19 -07:00

16 lines
369 B
Plaintext

/**
* @name Field write
* @description Finds assignments to field `Status` of type `Response` from package `net/http`.
* @id go/examples/responsestatus
* @tags net/http
* field write
*/
import go
from Field status, Write write
where
status.hasQualifiedName("net/http", "Response", "Status") and
write = status.getAWrite()
select write, write.getRhs()