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

Make sure fixes are applied to the correct lines #847

Merged
merged 3 commits into from
Dec 26, 2021

Conversation

somewhatabstract
Copy link
Owner

Summary:

Fixes #666

We use a simple counter to track lines during auto-fixing and use that to ensure that we apply fixes in the correct way.

Test plan:

yarn test

@codecov
Copy link

codecov bot commented Dec 16, 2021

Codecov Report

Merging #847 (dc2f030) into main (1b7b343) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #847   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           34        34           
  Lines          682       684    +2     
  Branches       145       145           
=========================================
+ Hits           682       684    +2     
Impacted Files Coverage Δ
src/fix-file.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce8999b...dc2f030. Read the comment docs.

@somewhatabstract somewhatabstract added this to the CheckSync 3.0.0 milestone Dec 16, 2021
@somewhatabstract somewhatabstract merged commit c84296b into main Dec 26, 2021
@somewhatabstract somewhatabstract deleted the somewhatabstract/issue666 branch December 26, 2021 22:57
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.

Duplicate targets should be differentiated by text and line number
1 participant