Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 583 Bytes

global_usage.md

File metadata and controls

17 lines (13 loc) · 583 Bytes

global_usage

What it does

Prohibits use of _G.

Why this is bad

_G is global mutable state, which is heavily regarded as harmful. You should instead refactor your code to be more modular in nature.

Configuration

ignore_pattern - A regular expression for variables that are allowed to be global variables. The default disallows all global variables regardless of their name.

Remarks

If you are using the Roblox standard library, use of shared is prohibited under this lint.

Example

_G.foo = 1