mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Change to alternative approach skipping all macro contexts
This commit is contained in:
parent
5491d31b5f
commit
84540d2a22
2 changed files with 18 additions and 13 deletions
|
@ -41,7 +41,7 @@ module Ameba::Rule::Lint
|
|||
CRYSTAL
|
||||
end
|
||||
|
||||
pending "reports if there is a static path comparison evaluating to false" do
|
||||
it "reports if there is a static path comparison evaluating to false" do
|
||||
expect_issue subject, <<-CRYSTAL
|
||||
String == Nil
|
||||
# ^^^^^^^^^^^ error: Comparison always evaluates to false
|
||||
|
@ -49,7 +49,7 @@ module Ameba::Rule::Lint
|
|||
end
|
||||
|
||||
context "macro" do
|
||||
it "reports in macro scope" do
|
||||
pending "reports in macro scope" do
|
||||
expect_issue subject, <<-CRYSTAL
|
||||
{{ "foo" == "foo" }}
|
||||
# ^^^^^^^^^^^^^^ error: Comparison always evaluates to true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue