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

add reportUnusedParameter rule #589

Merged
merged 3 commits into from
Aug 17, 2024
Merged

add reportUnusedParameter rule #589

merged 3 commits into from
Aug 17, 2024

Conversation

DetachHead
Copy link
Owner

fixes #336

@DetachHead DetachHead force-pushed the reportUnusedParameter branch 3 times, most recently from 56786fa to 98c58fe Compare August 17, 2024 04:54
@DetachHead DetachHead force-pushed the reportUnusedParameter branch from 98c58fe to b92ac27 Compare August 17, 2024 05:18

This comment has been minimized.

@DetachHead DetachHead force-pushed the reportUnusedParameter branch from b71e998 to 4a4dfc3 Compare August 17, 2024 06:40

This comment has been minimized.

@DetachHead DetachHead force-pushed the reportUnusedParameter branch from 53457f8 to 29003e9 Compare August 17, 2024 09:43

This comment has been minimized.

@DetachHead DetachHead force-pushed the reportUnusedParameter branch 2 times, most recently from 4855ccb to b245efd Compare August 17, 2024 11:22
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
+   /tmp/mypy_primer/projects/pyinstrument/pyinstrument/__main__.py:38:34 - error: "opt" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/pyinstrument/processors.py:238:26 - error: "options" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/pyinstrument/stack_sampler.py:207:38 - error: "interval" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/pyinstrument/renderers/base.py:34:22 - error: "session" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/pyinstrument/renderers/console.py:187:47 - error: "indent" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_cmdline.py:194:40 - error: "tmp_path" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_stack_sampler.py:15:22 - error: "stack" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_stack_sampler.py:15:29 - error: "time" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pyinstrument/test/test_stack_sampler.py:15:35 - error: "async_state" is not accessed (reportUnusedParameter)
- 1192 errors, 0 warnings, 0 notes
+ 1201 errors, 0 warnings, 0 notes

porcupine (https://github.com/Akuli/porcupine)
+   /tmp/mypy_primer/projects/porcupine/porcupine/menubar.py:343:29 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/pluginmanager.py:131:24 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/pluginmanager.py:184:26 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:607:22 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:625:25 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:694:22 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:698:25 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:784:26 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:787:36 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:797:25 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:840:25 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/settings.py:874:26 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/tabs.py:101:32 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/tabs.py:107:30 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/tabs.py:391:26 - error: "other" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/tabs.py:432:38 - error: "manager" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/tabs.py:432:59 - error: "state" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/tabs.py:848:30 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/textutils.py:591:27 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/textutils.py:594:27 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/textutils.py:597:26 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/textutils.py:634:25 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/textutils.py:817:27 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/utils.py:121:15 - error: "f" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/utils.py:139:32 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/utils.py:215:30 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/utils.py:720:20 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/images/__init__.py:63:34 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/aboutdialog.py:36:20 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/anchors.py:106:38 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/autocomplete.py:129:26 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/autocomplete.py:252:26 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/autocomplete.py:421:22 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/autocomplete.py:507:24 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/autocomplete.py:513:25 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/autoindent.py:95:43 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/autoindent.py:100:41 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/desktop_menu.py:77:22 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/directory_tree.py:149:28 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/directory_tree.py:242:34 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/directory_tree.py:265:23 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/directory_tree.py:333:32 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/directory_tree.py:435:47 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/directory_tree.py:442:23 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/directory_tree.py:468:19 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/editorconfig.py:348:52 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/filemanager.py:125:30 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/filemanager.py:362:15 - error: "path" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/filetypes.py:200:40 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/filetypes.py:234:26 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:149:28 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:169:52 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:173:20 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:206:20 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:218:31 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:263:38 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:311:33 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:330:37 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:341:29 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:366:28 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/find.py:382:28 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/git_status.py:206:33 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/git_status.py:223:54 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/git_status.py:242:54 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/hover.py:38:26 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/hover.py:67:29 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/hover.py:70:30 - error: "junk_event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/langserver.py:714:59 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/langserver.py:754:26 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/langserver.py:767:20 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/linenumbers.py:47:25 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/linenumbers.py:75:29 - error: "junk" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/linenumbers.py:89:27 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/linenumbers.py:92:32 - error: "event" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/porcupine/porcupine/plugins/longlinemarker.py:33:26 - error: "junk" is not accessed (reportUnusedParameter)

... (truncated 36 lines) ...

anyio (https://github.com/agronholm/anyio)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:239:9 - error: "func" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:240:9 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:241:9 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:242:9 - error: "name" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:243:9 - error: "future" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/pytest_plugin.py:68:18 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:872:20 - error: "f" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1222:22 - error: "f" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1232:22 - error: "f" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:786:35 - error: "outcome" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_synchronization.py:443:28 - error: "value" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_synchronization.py:466:43 - error: "borrower" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_synchronization.py:484:42 - error: "borrower" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_synchronization.py:503:36 - error: "borrower" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_tasks.py:48:24 - error: "value" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_tasks.py:80:22 - error: "value" is not accessed (reportUnusedParameter)
- 1552 errors, 0 warnings, 0 notes
+ 1568 errors, 0 warnings, 0 notes

nionutils (https://github.com/nion-software/nionutils)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Event.py:26:11 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Event.py:26:31 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Event.py:45:19 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Event.py:45:39 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Geometry.py:133:60 - error: "tight" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Geometry.py:152:27 - error: "value" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:97:23 - error: "d" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:428:38 - error: "before_index" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:434:37 - error: "index" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:647:67 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:706:66 - error: "index" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:848:47 - error: "item" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:1008:31 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:1008:41 - error: "item" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:1008:59 - error: "before_index" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:1011:30 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:1011:40 - error: "item" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ListModel.py:1011:58 - error: "index" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Model.py:37:21 - error: "value" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Model.py:196:34 - error: "observable" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Process.py:168:100 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Recorder.py:214:40 - error: "value" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Stream.py:47:26 - error: "check" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Stream.py:86:23 - error: "t" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/Stream.py:509:31 - error: "value" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/StructuredModel.py:127:25 - error: "m" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ThreadPool.py:61:53 - error: "description" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/ThreadPool.py:96:55 - error: "s" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:217:27 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:221:25 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:244:27 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:248:25 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:367:27 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:371:25 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:395:27 - error: "key" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/nionutils/nion/utils/test/ListModel_test.py:399:25 - error: "key" is not accessed (reportUnusedParameter)
- 1447 errors, 0 warnings, 0 notes
+ 1483 errors, 0 warnings, 0 notes

pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:110:9 - error: "exc_type" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:29:33 - error: "options" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:29:56 - error: "session" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:48:5 - error: "item" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:49:5 - error: "expression" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:50:5 - error: "fail_message" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:51:5 - error: "line_number" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:52:5 - error: "assertion_error" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/hooks.py:53:5 - error: "explanation" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:100:35 - error: "defaults" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:186:40 - error: "defaults" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:387:9 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:477:9 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:512:9 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:520:9 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:521:9 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:553:26 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:553:50 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:564:24 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:619:13 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:621:13 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:84:31 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:84:46 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:87:28 - error: "ext" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:87:39 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:87:52 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:90:27 - error: "source" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:93:37 - error: "source" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:96:32 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:96:47 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:99:30 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:99:59 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:102:40 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:102:69 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:106:20 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:106:47 - error: "timeout" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_keyword_decorator_args.py:7:10 - error: "args" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_keyword_decorator_args.py:7:26 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_catch_errors_decorator/conftest.py:17:24 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_catch_errors_decorator/conftest.py:17:48 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_catch_errors_decorator_with_non_instance_method/conftest.py:25:26 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_catch_errors_decorator_with_non_instance_method/conftest.py:25:50 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_listener_calls_log_file/Listener.py:13:24 - error: "path" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_listener_not_run_during_collection/conftest.py:18:27 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_listener_not_run_during_collection/conftest.py:18:52 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_robot_modify_options_hook_listener_instance/conftest.py:20:26 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_robot_modify_options_hook_listener_instance/conftest.py:20:50 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_robot_options_merge_listeners/Listener.py:18:27 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_robot_options_merge_listeners/Listener.py:18:52 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_robot_options_variable_merge_listeners/Listener.py:18:27 - error: "data" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_python/test_robot_options_variable_merge_listeners/Listener.py:18:52 - error: "result" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/pytest-robotframework/tests/fixtures/test_robot/test_listener_calls_log_file/Listener.py:13:24 - error: "path" is not accessed (reportUnusedParameter)
- 2192 errors, 0 warnings, 0 notes
+ 2244 errors, 0 warnings, 0 notes

graphql-core (https://github.com/graphql-python/graphql-core)
+   /tmp/mypy_primer/projects/graphql-core/src/graphql/validation/validation_context.py:113:24 - error: "error" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/graphql-core/tests/star_wars_data.py:147:26 - error: "character" is not accessed (reportUnusedParameter)
- 1835 errors, 0 warnings, 0 notes
+ 1837 errors, 0 warnings, 0 notes

bandersnatch (https://github.com/pypa/bandersnatch)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/filter.py:68:37 - error: "metadata" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/filter.py:79:22 - error: "metadata" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/filter.py:90:29 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/mirror.py:139:37 - error: "package" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/mirror.py:165:29 - error: "sync_index_page" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/mirror.py:168:24 - error: "exception" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/mirror.py:168:52 - error: "kwargs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:118:24 - error: "path" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:165:15 - error: "filepath" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:165:37 - error: "mode" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:165:56 - error: "kw" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:172:27 - error: "filename" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:172:51 - error: "kw" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:181:20 - error: "root" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:181:38 - error: "dirs" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:190:29 - error: "file1" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:190:48 - error: "file2" is not accessed (reportUnusedParameter)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/storage.py:197:26 - error: "path" is not accessed (reportUnusedParameter)

... (truncated 5104 lines) ...```

@DetachHead DetachHead merged commit 562a2c0 into main Aug 17, 2024
28 of 37 checks passed
@DetachHead DetachHead deleted the reportUnusedParameter branch August 17, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add reportUnusedParameter rule
2 participants