Merge branch 'develop'

This commit is contained in:
Vitalii Elenhaupt 2020-08-26 22:46:03 +03:00
commit f8d57345d4
No known key found for this signature in database
GPG key ID: CD0BF17825928BC0
5 changed files with 33 additions and 3 deletions

View file

@ -54,6 +54,14 @@ module Ameba::Rule::Lint
subject.catch(s).should_not be_valid
end
it "does not report ignored assigments" do
s = Source.new %(
payload, _header = decode
puts payload
)
subject.catch(s).should be_valid
end
it "reports a useless assignment in a proc inside a block" do
s = Source.new %(
def method