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

Improve detection of "nosec" clause #579

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

ehooo
Copy link
Contributor

@ehooo ehooo commented Feb 27, 2020

Related to the issue #490 and the implementation of #383 i make a improvement for the most cases (code without nosec comments) that improve the preformance in around 45%

Bandit 1.6.2 now 11.666704
Bandit with changes 5.396222

@ehooo
Copy link
Contributor Author

ehooo commented Feb 28, 2020

@lukehinds
I check the fault and for me wors when on py2 install the app before run the test.
I run:

python setup.py install
python -m testtools.run

nosec_lines = set()
else:

nosec_lines = set()
Copy link
Member

@ericwb ericwb Feb 8, 2022

Choose a reason for hiding this comment

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

The code here has changed enough after you rebase, that your changes might no longer have an effect. Please rebase and re-assess whether this is still an improvement.

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.

3 participants