Closed edgarmv closed 3 months ago
Attention: Patch coverage is 66.66667%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 94.03%. Comparing base (
baf22da
) to head (af9cdb2
). Report is 22 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
vsg/rules/whitespace_between_tokens.py | 66.66% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Evening @edgarmv ,
Thank you very much for finding these issues. I also appreciate that you added a test to catch the error along with the bug fix.
I will merge this to master.
Regards,
--Jeremy
Description Fixes two bugs in
whitespace_between_tokens.py
. The first bug is passing the number of spaces as index intolTokens
instead of thenum
parameter. This fails whennumber_of_spaces
is more than 1, and is silently catched by anexcept IndexError
.The second bug is fixed by adding extraction of
number_of_spaces
if the number ends with a+
. There already is a function for analyzing if it exists, but the functionality of extracting it is missing.Also add a test in
element_association
that checks that you can setnumber_of_spaces: '2+'
, covering both these bugs.