Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quoted-strings: Fix only-when-needed on corner cases #254

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

adrienverge
Copy link
Owner

@adrienverge adrienverge commented Apr 13, 2020

Change implementation of required: only-when-needed, because
maintaining a list of START_TOKENS and just looking at the first
character of string values has proven to be partially broken.

Cf. discussion at #246 (comment).

Fixes #242 and #244.


@ruipinge what do you think? Do you see problems / unhandled cases?

@adrienverge adrienverge force-pushed the fix/quoted-strings-detect-needed-correctly branch from 7d42414 to 932952c Compare April 13, 2020 13:30
@coveralls
Copy link

coveralls commented Apr 13, 2020

Coverage Status

Coverage increased (+0.02%) to 97.898% when pulling 28652b4 on fix/quoted-strings-detect-needed-correctly into 961c496 on master.

Change implementation of `required: only-when-needed`, because
maintaining a list of `START_TOKENS` and just looking at the first
character of string values has proven to be partially broken.

Cf. discussion at
#246 (comment).

Fixes #242 and
#244.
@adrienverge adrienverge force-pushed the fix/quoted-strings-detect-needed-correctly branch from 932952c to 28652b4 Compare April 13, 2020 13:34
@adrienverge adrienverge merged commit fa87913 into master Apr 15, 2020
@adrienverge adrienverge deleted the fix/quoted-strings-detect-needed-correctly branch April 15, 2020 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

quoted-strings only-when-needed incorrectly detecting strings with redundant quotes
2 participants