Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 554 Bytes

unscoped_variables.md

File metadata and controls

14 lines (11 loc) · 554 Bytes

unscoped_variables

What it does

Checks for variables that are unscoped (don't have a local variable attached).

Why this is bad

Unscoped variables make code harder to read and debug, as well as making it harder for selene to analyze.

Configuration

ignore_pattern (default: "^_") - A regular expression for variables that are allowed to be unscoped. The default allows for variables like _ to be unscoped, as they shouldn't be used anyway.

Example

baz = 3