PyCQA / PyCQA/bandit

Runtime error with screen/text formating

Open
#472 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
8.3k
Forks
835
Avg merge
5d 3h
Merged PRs (30d)
1

Description

Describe the bug
I am scanning many repositories with a single command

bandit -v -ii -lll -r ./

and I get this result:
image

Same happens with this command:

bandit -f txt-v -ii -lll -r ./

image

To Reproduce
Steps to reproduce the behavior:
Not sure how to reproduce to be honest. :D
Maybe just do as I did scan a lot of repositories using the default output.

Expected behavior
Normally I would expect a normal issue report.

Bandit version

1.5.1

Additional context
macOs Mojave version 10.14.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running bandit -v -ii -lll -r ./ and bandit -f txt-v -ii -lll -r ./ with Bandit 1.5.1, comparing the default and text-format output. The report provides no source file or test location and says reproduction is uncertain; done would mean the scan produces a normal issue report without a runtime formatting error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.