-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I was playing around with the mark_multiline
function in an attempt to remedy this, but I might need help from someone more familiar with ruby.
Currently bashcov isn't picking up subshell defined variables if they are spread accross multiple lines:
my_variable="$(
cat /tmp/myfile.txt
)"
The line with cat is marked as missed.
Here's a contrived example:

Is this because it's being executed in a subshell and there is some reason the line cannot be identified as executed? Or is simply a matter creating a more forgiving regex?
I'm unsure if this is a good candidate for the multi_line solution as there could be conditionals inside the subshell.
Metadata
Metadata
Assignees
Labels
No labels