Rasmus Wriedt Larsen
|
a98466392d
|
Python: Improve tests and docs for py/iter-returns-non-iterator
|
2019-10-23 10:46:07 +02:00 |
|
Rasmus Wriedt Larsen
|
457794e030
|
Python: Consistenly use parameter instead of argument in docs
The Python 3 FAQ states that this is the right thing [0]
It sadly doesn't align 100% with PEP8, which calls them for "arguments" [1], but
after discussion with Taus, we decided to go with "parameter" everywhere to be
consistent.
[0] https://docs.python.org/3/faq/programming.html#faq-argument-vs-parameter
[1] https://www.python.org/dev/peps/pep-0008/#function-and-method-arguments
|
2019-09-26 16:31:09 +02:00 |
|
Rasmus Wriedt Larsen
|
546405a379
|
Python: Add more tests for cls/self argument names
|
2019-09-26 13:25:14 +02:00 |
|
Rasmus Wriedt Larsen
|
c6d9eb9254
|
Python: Move more tests for argument names into own file
Plus fixup of expected output from unrelated tests
|
2019-09-26 13:25:14 +02:00 |
|
Rasmus Wriedt Larsen
|
d273974045
|
Python: Don't flag return procedure_call() in __init__ as error
This commit fixes the results for
0d8a429b7e/files/mayaTools/cgm/lib/classes/AttrFactory.py (L90)
```
def __init__(...):
if error_case:
return guiFactory.warning(...)
```
that was wrongly reporting _Explicit return in __init__ method._ as an error.
|
2019-09-23 11:22:55 +02:00 |
|
Rasmus Wriedt Larsen
|
6e50a0ef84
|
Python: Modernise the py/explicit-return-in-init query.
Add explicit test case to show that we don't doulbe report this problem.
|
2019-09-23 11:22:55 +02:00 |
|
Rasmus Wriedt Larsen
|
3c33e863ad
|
Python: split tests for Functions into more files
Makes it easier to see what the testcases are relevant for what queries.
|
2019-09-19 11:54:28 +02:00 |
|
Mark Shannon
|
64c160b75c
|
Python taint-tracking: Fix ambiguous flow through class instantiation. Tweak the path query to ensure edge to sink is always present.
|
2019-08-29 10:31:50 +01:00 |
|
Mark Shannon
|
2d9d292ee4
|
Python: Fix up pi-node handling in taint-tracking.
|
2019-08-29 10:31:50 +01:00 |
|
Mark Shannon
|
6bd5158f9e
|
Python taint-tracking: Remove 'parents' query from path-queries, as it unused by the tooling.
|
2019-08-08 10:15:06 +01:00 |
|
Mark Shannon
|
6a9bb5c5c9
|
Add test confirming correct handling of zope.interface.Interface in query.
|
2019-04-23 12:52:50 +01:00 |
|
Mark Shannon
|
2edde1fed8
|
Python taint-tracking. Handle early exit and 'not' correctly for 'falsey' taints.
|
2019-03-22 11:58:23 +00:00 |
|
Mark Shannon
|
94190e76aa
|
Python: Update py/modification-of-default-value to account for truthiness of default value.
|
2019-03-01 12:01:39 +00:00 |
|
Taus Brock-Nannestad
|
895b237e3c
|
Python: Make "Modification of parameter with default" flow-sensitive.
|
2019-02-04 19:05:04 +01:00 |
|
Mark Shannon
|
05b69a1c0f
|
QL tests for Python queries and libraries.
|
2018-11-19 15:15:54 +00:00 |
|