mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
17 lines
335 B
Plaintext
17 lines
335 B
Plaintext
/**
|
|
* @name class_attr
|
|
* @kind test
|
|
* @problem.severity warning
|
|
*/
|
|
|
|
import python
|
|
private import LegacyPointsTo
|
|
|
|
from ClassObject cls, int line, string name
|
|
where
|
|
cls.hasLocationInfo(_, line, _, _, _) and
|
|
cls.declaresAttribute(name) and
|
|
not cls.isC() and
|
|
not name.matches("\\_\\_%\\_\\_")
|
|
select line, cls.toString(), name
|