Skip to content

Use vulture #973

@The-Compiler

Description

@The-Compiler

We should probably integrate vulture into the CI to statically find dead code.

It need some fine-tuning for false positivies (Qt virtual methods, qutebrowser commands), but it seems to find some real problems:

browser/commands.py:220: Unused function '_editor_cleanup'
browser/history.py:55: Unused function 'from_str'
browser/rfc6266.py:45: Unused variable 'nontoken_chars'
browser/webview.py:122: Unused attribute '_cur_url'
commands/cmdexc.py:45: Unused class 'ArgumentCountError'
config/configtypes.py:742: Unused class 'Regex'
misc/ipc.py:38: Unused variable 'CONNECT_TIMEOUT'

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: testsIssues related to the testsuite.priority: 1 - middleIssues which should be done at some point, but aren't that important.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions