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

Feature/more rules and tests #12

Merged
merged 17 commits into from Feb 1, 2020
Merged

Conversation

ievans
Copy link
Member

@ievans ievans commented Feb 1, 2020

Add a test suite and a whole bunch of new python rules. New output from make test:

========================================================================================================================
python/compatibility/python37.yaml
⚠ - python37-compatability-os-module                            TP: 1	TN:0	 FP: 2	 FN: 0
✔ - python37-compatibility-os2-ok2                              TP: 1	TN:0	 FP: 0	 FN: 0
========================================================================================================================
python/smells/missing-hash-with-eq.yaml
 no checks fired (TODOs: 1)
========================================================================================================================
python/smells/sleep.yaml
✔ - arbitrary-sleep                                             TP: 3	TN:0	 FP: 0	 FN: 0
========================================================================================================================
python/exceptions/exceptions.yaml
✔ - raise-not-base-exception                                    TP: 1	TN:0	 FP: 0	 FN: 0 (TODOs: 2)
========================================================================================================================
python/deadcode/useless-ifelse.yaml
✔ - useless-if-conditional                                      TP: 1	TN:0	 FP: 0	 FN: 0 (TODOs: 1)
✔ - useless-if-body                                             TP: 3	TN:0	 FP: 0	 FN: 0 (TODOs: 1)
========================================================================================================================
python/deadcode/return.yaml
✔ - return-not-in-function                                      TP: 1	TN:0	 FP: 0	 FN: 0 (TODOs: 2)
========================================================================================================================
python/deadcode/useless-literal.yaml
 no checks fired (TODOs: 4)
========================================================================================================================
python/deadcode/useless-innerfunction.yaml
 no checks fired (TODOs: 2)
========================================================================================================================
python/deadcode/baseclass-attribute-override.yaml
 no checks fired (TODOs: 1)
========================================================================================================================
python/deadcode/useless-assign.yaml
✔ - useless-assignment-keyed                                    TP: 1	TN:0	 FP: 0	 FN: 0 (TODOs: 2)
========================================================================================================================
python/deadcode/missing-fstring.yaml
 no checks fired (TODOs: 0)
========================================================================================================================
python/tempfile/mktemp.yaml
✔ - tempfile-insecure                                           TP: 2	TN:0	 FP: 0	 FN: 0
========================================================================================================================
python/tempfile/flush.yaml
✔ - tempfile-without-flush                                      TP: 1	TN:0	 FP: 0	 FN: 0 (TODOs: 1)

@DrewDennison DrewDennison merged commit 81f1734 into master Feb 1, 2020
@DrewDennison DrewDennison deleted the feature/more-rules-and-tests branch February 1, 2020 19:51
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.

None yet

2 participants