Commit 7c90e1b
authored
Fix dead-code false positives for framework/runtime reachability (#29)
* docs(chore): clarification of wording and general reorganization of sections
* feat(core): bump package version to 2.0.1b1 and update project deps (uv.lock)
* fix(core, ci): update package description and bump GitHub default CodeClone package verion to 2.0.1b1 for current beta line to fix tests errors in CI
* fix(core): fixed the FP dead code detector for popular frameworks (FastAPI/Starlette route and dependency registration, Django URL patterns, Dependency Injector providers, Typer/Click commands, and Celery tasks), as well as CI tests.
* chore(docs): update project docs
* fix(dead-code): avoid Protocol declarations as false positives
* test(dead-code): cover explicit ABC inheritance liveness
* fix(dead-code): reduce framework and packaging false positives
- Teach dead-code analysis about exact runtime liveness surfaces that do not appear as direct calls: FastAPI Annotated dependencies, literal __all__ exports, package entry points, and Pydantic runtime hooks.
* chore(deps): update project deps
* chore(docs): remove v1 EOL notice from README pages1 parent 7840f7a commit 7c90e1b
52 files changed
Lines changed: 4535 additions & 921 deletions
File tree
- .github/actions/codeclone
- codeclone
- analysis
- cache
- contracts
- core
- metrics
- docs
- assets
- stylesheets
- book
- appendix
- tests
- fixtures/golden_v2/pyproject_defaults
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
3 | 19 | | |
4 | 20 | | |
5 | 21 | | |
| |||
0 commit comments