Prohibits use of _G
.
_G
is global mutable state, which is heavily regarded as harmful. You should instead refactor your code to be more modular in nature.
ignore_pattern
- A regular expression for variables that are allowed to be global variables. The default disallows all global variables regardless of their name.
If you are using the Roblox standard library, use of shared
is prohibited under this lint.
_G.foo = 1