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

Use Travis Continuous Integration to run flake8 tests #49

Closed
wants to merge 1 commit into from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Apr 15, 2018

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

The issues behind bugcrowd#46, bugcrowd#47, and bugcrowd#48 could all be found via automated testing using [flake8](http://flake8.pycqa.org).  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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant