runtimeverification / runtimeverification/kontrol

Add `deadcode` utility to CI code checks

Open
#989 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
122
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Currently we have some deadcode in the repository: https://github.com/runtimeverification/kontrol/pull/976#issuecomment-2721482052.

We colud check on CI that no deadcode is kept in the repository in general, though it may not be as effective as we think because many functions are reported as dead because they're called with reflective dispatch, for example exec_*** functions in the __main__.py.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the deadcode discussion in PR #976 and inspect main.py, especially the exec_*** functions mentioned as reflective-dispatch false positives. Determine how the deadcode utility should be integrated into CI, then verify that the check reports genuine dead code without incorrectly blocking these reflective functions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.