mirror of
https://github.com/github/codeql.git
synced 2025-12-25 05:06:34 +01:00
17 lines
418 B
Plaintext
17 lines
418 B
Plaintext
/**
|
|
* @name Use of the 'global' statement.
|
|
* @description Use of the 'global' statement may indicate poor modularity.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @sub-severity low
|
|
* @deprecated
|
|
* @precision very-high
|
|
* @id py/use-of-global
|
|
*/
|
|
|
|
import python
|
|
|
|
from Global g
|
|
where not g.getScope() instanceof Module
|
|
select g, "Updating global variables except at module initialization is discouraged."
|