Skip to content

feature request: whitelist for dpdusage #14

@hendriktews

Description

@hendriktews

Thanks for this very nice tool set!! Since I use Coq I have always been looking for a way to find unused definitions and lemmas.

My project has quite a few top-level theorems. They are reported by dpdusage, but I don't want to delete them. Moreover, I have a fair amount of technical lemmas that I want to keep, even though they are not used (currently). Because of this I am interested in a white-listing feature for dpdusage.

I am considering to open a PR that adds three things to dpdusage:

  • an option -white-list <path>:<name>

  • an option -white-list-file <file> that reads a file of white-listed names in the same format

  • an option -strict-white-list that warns about a white-listed item with usage count above the threshold

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions