Currently, we don't support filter results only on changed/added files. This PR adds logic to support that feature.
How it works?
Using periphery scan to get the outputs.
Use 'git diff $sourceBranch --path $filePath' to get all the changes in that file. (filePath comes from the output.declaration.location.path)
Compare the output.declaration.location.line with the newLineStart and newLineSpan from the diff. If it matches, then it's a new/changed line.
Notes
This is a propose idea and solution. I haven't updated the tests. If you feel the feature and the solution is okay, I will update the tests.
Please take a look and let me know if you have any suggestions. Thank you
Description
Currently, we don't support filter results only on changed/added files. This PR adds logic to support that feature.
How it works?
Notes
This is a propose idea and solution. I haven't updated the tests. If you feel the feature and the solution is okay, I will update the tests. Please take a look and let me know if you have any suggestions. Thank you