Add Crystal::Path to the list of primitive types

So, the  comparisons like `Regex == 1=42` will also be detected.
This commit is contained in:
Sijawusz Pur Rahnama 2022-11-02 02:05:27 +01:00
parent 6bf8db81e3
commit aee5de517b

View file

@ -37,6 +37,7 @@ module Ameba::Rule::Lint
Crystal::StringLiteral, Crystal::StringLiteral,
Crystal::SymbolLiteral, Crystal::SymbolLiteral,
Crystal::ProcLiteral, Crystal::ProcLiteral,
Crystal::Path,
} }
DYNAMIC_LITERAL_TYPES = { DYNAMIC_LITERAL_TYPES = {