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

fix: in file comparison while ignoring whitespace (#478 #478

Merged
merged 2 commits into from
Feb 26, 2023

Conversation

scolladon
Copy link
Owner

@scolladon scolladon commented Feb 23, 2023

Explain your changes


Remove --word-diff-regex=|[^[:space:]] parameter when getting diff content of file (for custom labels or sharing rules or workflow rule for instance)
This parameter is working fine with --numstat and allow the plugin to get files that have been changed while ignoring whitespace changes
But it does not works when working with full diff content and was returning nothing is changed even when there are not blank characters changes

Does this close any currently open issues?


@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (829e4ef) compared to base (eb3de49).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #478   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines          817       819    +2     
=========================================
+ Hits           817       819    +2     
Impacted Files Coverage Δ
src/utils/repoGitDiff.js 100.00% <ø> (ø)
src/utils/fileGitDiff.js 100.00% <100.00%> (ø)
src/utils/gitConstants.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

mehdicherf
mehdicherf previously approved these changes Feb 24, 2023
@codeclimate
Copy link

codeclimate bot commented Feb 26, 2023

Code Climate has analyzed commit 829e4ef and detected 0 issues on this pull request.

View more on Code Climate.

@scolladon scolladon changed the title fix: in file comparison while ignoring whitespace fix: in file comparison while ignoring whitespace (#478 Feb 26, 2023
@scolladon scolladon merged commit 268504c into main Feb 26, 2023
@scolladon scolladon deleted the fix/infile-ignore-whitespace-issue branch February 26, 2023 17:20
scolladon added a commit that referenced this pull request Feb 26, 2023
* fix: remove `--word-diff-regex` for inFile git diff comparison

* build: upgrade dependencies
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.

2 participants