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
|
e487fd3648
|
Python: Improve alert message for py/iter-returns-non-iterator
Fixes https://github.com/Semmle/ql/issues/1427
|
2019-10-22 10:27:55 +02:00 |
|
Rasmus Wriedt Larsen
|
6056b457e9
|
Python: Autoformat py/iter-returns-non-iterator
|
2019-10-22 10:25:01 +02:00 |
|
Rasmus Wriedt Larsen
|
4a5aae0db8
|
Python: autoformat (4 spaces) NonCls.ql NonSelf.ql
|
2019-09-26 16:31:14 +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
|
a81bf720f5
|
Python: Modernise the py/not-named-self query.
|
2019-09-26 13:25:14 +02:00 |
|
Rasmus Wriedt Larsen
|
3f974fbc14
|
Python: Modernise the py/not-named-cls query.
|
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
|
631603fa92
|
Python: Modernise the py/mixed-tuple-returns query.
|
2019-09-17 16:07:56 +02: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
|
64e6974aac
|
Merge branch 'master' into python-mutable-default-with-flow
|
2019-03-01 11:10:56 +01:00 |
|
Taus Brock-Nannestad
|
91cfc9bd4c
|
Change kind to path-problem.
|
2019-03-01 11:06:48 +01:00 |
|
Mark Shannon
|
35fa5d8f60
|
Python move various theXXX() predicates into the appropriate module.
|
2019-02-20 10:34:08 +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
|
5f58824d1b
|
Initial commit of Python queries and QL libraries.
|
2018-11-19 15:10:42 +00:00 |
|