wrolpi/scripts/vulture_baseline.txt
lrnselfreliance f4cd3b6f77
Fail CI when vulture finds new dead code (#889)
* Fail CI when vulture finds new dead code

scripts/check_dead_code.py runs vulture and compares its findings with
scripts/vulture_baseline.txt.  The baseline is keyed by file and name, not
line number, so unrelated edits do not invalidate it.  Class fields,
attributes, test arguments (side-effect fixtures), and alembic revision
names are not reported, because nearly all of them are false positives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* TEMP: add a dead function to prove the Dead Code check fails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Revert the temporary dead function

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:10:52 -06:00

50 lines
2.6 KiB
Text

# Known vulture findings, see scripts/check_dead_code.py. Regenerate with --update.
alembic/env.py: unused variable 'context_'
controller/api/schemas.py: unused class 'CpuStatusResponse'
controller/api/schemas.py: unused class 'DriveStatusResponse'
controller/api/schemas.py: unused class 'LoadStatusResponse'
controller/api/schemas.py: unused class 'MemoryStatusResponse'
controller/api/schemas.py: unused class 'NetworkInterfaceResponse'
controller/api/schemas.py: unused class 'PowerStatusResponse'
controller/test/test_admin.py: unused function '_show_proc'
modules/archive/api.py: unused variable 'NAME'
modules/docs/api.py: unused variable 'NAME'
modules/docs/models.py: unused variable 'EPUB_MIMETYPE'
modules/inventory/api.py: unused variable 'NAME'
modules/videos/lib.py: unused property 'quiet'
modules/videos/lib.py: unused property 'youtube_include_dash_manifest'
wrolpi/collections/models.py: unused method 'batch_from_config'
wrolpi/config_version.py: unused variable 'flush_context'
wrolpi/conftest.py: unused import 'uuid1'
wrolpi/conftest.py: unused method 'assert_event_count'
wrolpi/conftest.py: unused method 'assert_events_contain'
wrolpi/conftest.py: unused method 'get_by_subject'
wrolpi/conftest.py: unused method 'set_test_exception'
wrolpi/dates.py: unused method 'process_result_value'
wrolpi/dates.py: unused variable 'dialect'
wrolpi/dates.py: unused variable 'dialect'
wrolpi/db.py: unused variable 'clause'
wrolpi/downloader.py: unused variable 'save_download_cache_config'
wrolpi/files/models.py: unused class 'WrolpiKV'
wrolpi/files/models.py: unused method 'process_result_value'
wrolpi/files/models.py: unused variable 'dialect'
wrolpi/files/models.py: unused variable 'dialect'
wrolpi/files/test/test_worker_move.py: unused import 'worker_module'
wrolpi/flags.py: unused variable 'exc_tb'
wrolpi/flags.py: unused variable 'exc_type'
wrolpi/flags.py: unused variable 'exc_val'
wrolpi/jobs.py: unused method 'cancel_requested'
wrolpi/logging_extra.py: unused class 'EmptyMessageFilter'
wrolpi/media_path.py: unused method 'process_result_value'
wrolpi/media_path.py: unused variable 'PATH_TYPE'
wrolpi/media_path.py: unused variable 'dialect'
wrolpi/media_path.py: unused variable 'dialect'
wrolpi/tags.py: unused function 'get_name_by_id_key'
wrolpi/test/common.py: unused class 'PytestCase'
wrolpi/test/common.py: unused method 'assertDictContains'
wrolpi/test/common.py: unused method 'assertGreater'
wrolpi/test/common.py: unused method 'assertItemsTruthyOrFalsey'
wrolpi/test/common.py: unused method 'assertLength'
wrolpi/test/common.py: unused method 'assertLess'
wrolpi/test/common.py: unused method 'assertRaises'
wrolpi/vars.py: unused variable 'DATETIME_FORMAT_MS'