Files
codeql/python/ql/src/Variables/Global.ql
Felicity Chapman caf6b950ac Remove trailing periods from @name metadata in query files
Fixed 73 .ql query files where the @name metadata contained an ending period.
This ensures consistency with the CodeQL query metadata style guidelines.
2025-11-26 14:29:51 +00:00

17 lines
417 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."