bugcrowd / HUNT

Apache License 2.0
2.19k stars 415 forks source link

Use Travis Continuous Integration to run flake8 tests #49

Closed cclauss closed 5 years ago

cclauss commented 6 years ago

The issues behind #46, #47, and #48 could all be found via automated testing using flake8. The Travis CI is free for all open source projects like this one and to turn it on, visit https://travis-ci.org/profile/bugcrowd This config file will have Travis CI run flake8 tests on all pull requests before they are reviewed.

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./Burp/lib/issues.py:97:9: F821 undefined name 'Thread'
        Thread.sleep(1000)
        ^
./Burp/lib/link_listener.py:6:23: F821 undefined name 'Desktop'
            desktop = Desktop.getDesktop()
                      ^
./ZAP/scripts/passive/CMDi.py:22:56: E999 IndentationError: unindent does not match any outer indentation level
        uri = msg.getRequestHeader().getURI().toString()
                                                       ^
1     E999 IndentationError: unindent does not match any outer indentation level
2     F821 undefined name 'Thread'
3