mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
276 B
Plaintext
15 lines
276 B
Plaintext
/**
|
|
* @name Variable write
|
|
* @description Finds assignments to variables named "err".
|
|
* @id go/examples/errwrite
|
|
* @tags variable write
|
|
*/
|
|
|
|
import go
|
|
|
|
from Variable err, Write write
|
|
where
|
|
err.getName() = "err" and
|
|
write = err.getAWrite()
|
|
select write, write.getRhs()
|