Merge pull request #8315 from reitermarkus/desc-cop-range

Fix `Desc` cop for casks.
This commit is contained in:
Markus Reiter 2020-08-12 02:31:47 +02:00 committed by GitHub
commit 593b60fa1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,9 @@ module RuboCop
return return
end end
@offensive_node = desc_call
@offense_source_range = desc_call.source_range
desc = desc_call.first_argument desc = desc_call.first_argument
# Check if the desc is empty. # Check if the desc is empty.