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 failing --no-check-version cli option #4003

Conversation

alexzurbonsen
Copy link
Contributor

@alexzurbonsen alexzurbonsen commented Dec 5, 2024

Currently, if the --no-check-version option is used, the scan fails because an unbound variable is passed to the run_scan function.

Fix by assigning None in that case. Add a test that passes with this change and fails without it.

Fixes #4004

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

@alexzurbonsen alexzurbonsen force-pushed the fix-no-check-version-bug branch from 560ccb7 to 5470c3b Compare December 5, 2024 10:03
Currently, if the --no-check-version option is used,
the scan fails because an unbound variable is passed to
the run_scan function.
Fix this by assigning None in that case. Add a test that
passes with this change and fails without it.

Signed-off-by: alexzurbonsen <[email protected]>
@alexzurbonsen alexzurbonsen force-pushed the fix-no-check-version-bug branch from 5470c3b to 706c0f7 Compare December 5, 2024 10:05
@alexzurbonsen alexzurbonsen marked this pull request as ready for review December 5, 2024 10:05
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @alexzurbonsen for reporting and fixing this!
It seems we missed this at #2662

@AyanSinhaMahapatra AyanSinhaMahapatra merged commit c40476a into aboutcode-org:develop Dec 5, 2024
36 checks passed
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.

Cli fails with --no-check-version option
2 participants