mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
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:
parent
6bf8db81e3
commit
aee5de517b
1 changed files with 1 additions and 0 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue