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

Addressing missed feedback from #551 and returning FilePath #553

Merged
merged 6 commits into from Dec 3, 2021

Conversation

shirchen
Copy link
Contributor

@shirchen shirchen commented Dec 3, 2021

Addressing leftover comments and changing thriftbreak to return filepath relative to the passed in repository.

@codecov
Copy link

codecov bot commented Dec 3, 2021

Codecov Report

Merging #553 (9e68200) into dev (ab2e4a7) will increase coverage by 0.00%.
The diff coverage is 90.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #553   +/-   ##
=======================================
  Coverage   67.99%   68.00%           
=======================================
  Files         139      139           
  Lines       23722    23729    +7     
=======================================
+ Hits        16130    16137    +7     
  Misses       4537     4537           
  Partials     3055     3055           
Impacted Files Coverage Δ
cmd/thriftbreak/main.go 51.35% <33.33%> (ø)
internal/compare/compare.go 95.91% <100.00%> (+0.56%) ⬆️
internal/git/git.go 68.83% <100.00%> (+0.41%) ⬆️

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 ab2e4a7...9e68200. Read the comment docs.

@shirchen shirchen changed the title Addressing missed feedback from #551 Addressing missed feedback from #551 and returning FilePath Dec 3, 2021
Copy link
Contributor

@sywhang sywhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm modulo a few minor fixes

cmd/thriftbreak/main_test.go Outdated Show resolved Hide resolved
internal/compare/compare.go Outdated Show resolved Hide resolved
file, err := filepath.Rel(p.GitDir, filePath)
if err != nil {
// If a file was deleted, then we will not be able to
// find a full path to it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean to say we will not be able to find a relative path to it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup yup. thanks

Copy link
Contributor

@abhinav abhinav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM minus minor sung's comments and the missing tt := tt in a test that uses t.Parallel().

internal/compare/compare_test.go Outdated Show resolved Hide resolved
abhinav and others added 2 commits December 3, 2021 10:24
Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
@shirchen shirchen merged commit 944fb9f into thriftrw:dev Dec 3, 2021
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.

None yet

3 participants