PaytmLabs / nerve

NERVE Continuous Vulnerability Scanner
MIT License
456 stars 116 forks source link

Undefined name 'result' in rule_mysql-bf.py #2

Closed cclauss closed 4 years ago

cclauss commented 4 years ago

flake8 testing of https://github.com/PaytmLabs/nerve on Python 3.9.0rc2+

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./rules/bruteforce/rule_mysql-bf.py:51:67: F821 undefined name 'result'
          self.rule_details = 'Credentials are set to: {}'.format(result)
                                                                  ^
1     F821 undefined name 'result'
1

https://flake8.pycqa.org/en/latest/user/error-codes.html

On the flake8 test selection, this PR does not focus on "style violations" (the majority of flake8 error codes that psf/black can autocorrect). Instead these tests are focus on runtime safety and correctness:

dolevf commented 4 years ago

hi there,

This was resolved in 2.5.1