summaryrefslogtreecommitdiff
path: root/tests/functional/c/consider/consider_using_dict_comprehension.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix false positive `consider-using-dict-comprehension` when creating a dict ↵Tushar Sadhwani2021-12-301-1/+6
| | | | | | using a list of tuple where key AND value vary depending on the same condition (#5590) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add new checkers ``use-list-literal`` and ``use-dict-literal`` (#4769)Daniël van Noord2021-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Add ``use-list-literal`` and ``use-dict-literal`` This adds two checks for when empty lists and dicts are created using a function call instead of their literals. This closes #4365 * Conform code to use-list-literal, use-dict-literal With addition of the use-list-literal and use-dict-literal checkers some code had to be updated. As there is a real performance difference, the literal is preferred when it is as clear as using the function call. * Conform test to use-list-literal, use-dict-literal With addition of the use-list-literal and use-dict-literal checkers some code had to be updated. As there is a real performance difference, the literal is preferred when it is as clear as using the function call. For some tests ignoring the checker seemed better for clarity of the test. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Revert "Fix existing tests"Marc Mueller2021-06-101-1/+1
|
* Fix existing testsMarc Mueller2021-06-101-1/+1
|
* Create subdirectory for crowded functional testsPierre Sassoulas2021-03-071-0/+12