Skip to content

Files

Latest commit

 

History

History
31 lines (19 loc) · 532 Bytes

Lint-ConstantResolution.md

File metadata and controls

31 lines (19 loc) · 532 Bytes

Pattern: Use of not fully qualified constant

Issue: -

Description

Checks that certain constants are fully qualified.

Generally, gems should fully qualify all constants to avoid conflicts with the code that uses the gem. Enable this cop without using Only/Ignore.

Examples

# By default checks every constant

# bad
User

# bad
User::Login

# good
::User

# good
::User::Login

Further Reading