Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Extra results printed, when running bandit on file that doesnt exist #1008

Open
Stapes23 opened this issue Mar 28, 2023 · 0 comments
Open

Extra results printed, when running bandit on file that doesnt exist #1008

Stapes23 opened this issue Mar 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Stapes23
Copy link

Stapes23 commented Mar 28, 2023

When running bandit on a file that doesn't exist, it still gives the results as if it found the file and ran the project, saying 0 issues found. Then when you go the bottom of the results it then says one file skipped and says (example.py (No such file or directory)).

There should be an added functionality that is added where it just says no such file found, instead of acting like it "ran the file"

example below:

(Desktop) Omars-MacBook-Air:bandit omar$ bandit example.py
[main]  INFO    profile include tests: None
[main]  INFO    profile exclude tests: None
[main]  INFO    cli include tests: None
[main]  INFO    cli exclude tests: None
[main]  INFO    running on Python 3.7.4
Run started:2023-03-28 01:16:36.366190
Test results:
        No issues identified.
Code scanned:
        Total lines of code: 0
        Total lines skipped (#nosec): 0
Run metrics:
        Total issues (by severity):
                Undefined: 0
                Low: 0
                Medium: 0
                High: 0
        Total issues (by confidence):
                Undefined: 0
                Low: 0
                Medium: 0
                High: 0
Files skipped (1):
        example.py (No such file or directory)
(Desktop) Omars-MacBook-Air:bandit omar$
@Stapes23 Stapes23 added the enhancement New feature or request label Mar 28, 2023
@ericwb ericwb added bug Something isn't working and removed enhancement New feature or request labels Apr 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants