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: correct handling of ./ scan target prefix #93

Merged

Conversation

spdawson
Copy link
Contributor

@spdawson spdawson commented Nov 1, 2022

Description

When the scan target is specified with a ./ prefix, we currently incorrectly build relative file paths within the project directory.

Also ensure that we correctly handle the cases where a trailing slash is either present or absent, on a directory path specified as scan target.

Checklist

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.
  • I've included usage information in the description if CLI behavior was updated or added.
  • PR title follows Conventional Commits format

@swarmia
Copy link

swarmia bot commented Nov 1, 2022

gotbadger
gotbadger previously approved these changes Nov 1, 2022
Copy link
Contributor

@gotbadger gotbadger left a comment

Choose a reason for hiding this comment

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

Thanks for the fix on this one @spdawson

elsapet
elsapet previously approved these changes Nov 1, 2022
@spdawson spdawson dismissed stale reviews from elsapet and gotbadger via 0ff1477 November 1, 2022 11:01
@spdawson spdawson force-pushed the AMA-3096-fix-handling-of-dot-slash-scan-target-prefix branch 3 times, most recently from 35b5f0e to 0d3ead7 Compare November 1, 2022 11:23
When the scan target is specified with a `./` prefix, we currently
incorrectly build relative file paths within the project directory.

Also ensure that we correctly handle the cases where a trailing
slash is either present or absent, on a directory path specified
as scan target.
@spdawson spdawson force-pushed the AMA-3096-fix-handling-of-dot-slash-scan-target-prefix branch from 0d3ead7 to d925a35 Compare November 1, 2022 11:25
@spdawson spdawson merged commit 3d6b474 into main Nov 1, 2022
@spdawson spdawson deleted the AMA-3096-fix-handling-of-dot-slash-scan-target-prefix branch November 1, 2022 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants