mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
15 lines
257 B
Plaintext
15 lines
257 B
Plaintext
/**
|
|
* @name Variable read
|
|
* @description Finds code that reads a variable called `err`.
|
|
* @id go/examples/readoferr
|
|
* @tags variable read
|
|
*/
|
|
|
|
import go
|
|
|
|
from Variable err, Read read
|
|
where
|
|
err.getName() = "err" and
|
|
read = err.getARead()
|
|
select read
|