mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
369 B
Plaintext
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()
|