Sometimes unused class or function manages to slip into code base. Static code checkers like ruff, flake8 does not have rules for detecting such globally unused code.

I tried using vulture, but it has too many false positives to have it as part of CI/CD pipeline.

I have tried to implement my own, more reliable check for global deadcode detection.

Please let me know what you think about it.

  • Jason NovingerM
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Would also be nice if I could use some sort of pattern in the --ignore-names option. Apologies if that’s already there and I missed it.

    • niekasOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Great idea! I will add this feature shortly :)