mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fix wording
This commit is contained in:
parent
61a45d4321
commit
e7f4bb6ae3
2 changed files with 3 additions and 3 deletions
|
@ -136,7 +136,7 @@ module Ameba::Rule::Lint
|
||||||
CRYSTAL
|
CRYSTAL
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't report if it shadows type definition" do
|
it "doesn't report if it shadows type declaration" do
|
||||||
expect_no_issues subject, <<-CRYSTAL
|
expect_no_issues subject, <<-CRYSTAL
|
||||||
class FooBar
|
class FooBar
|
||||||
getter index : String
|
getter index : String
|
||||||
|
|
|
@ -476,7 +476,7 @@ module Ameba::Rule::Lint
|
||||||
issue.message.should eq "Useless assignment to variable `foo`"
|
issue.message.should eq "Useless assignment to variable `foo`"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't report if top level variable defined inside module and referenced" do
|
it "doesn't report if type declaration assigned inside module and referenced" do
|
||||||
s = Source.new %(
|
s = Source.new %(
|
||||||
module A
|
module A
|
||||||
foo : String? = "foo"
|
foo : String? = "foo"
|
||||||
|
@ -492,7 +492,7 @@ module Ameba::Rule::Lint
|
||||||
subject.catch(s).should be_valid
|
subject.catch(s).should be_valid
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't report if top level variable assigned inside class and referenced" do
|
it "doesn't report if type declaration assigned inside class" do
|
||||||
s = Source.new %(
|
s = Source.new %(
|
||||||
class A
|
class A
|
||||||
foo : String? = "foo"
|
foo : String? = "foo"
|
||||||
|
|
Loading…
Reference in a new issue