Repository navigation
Plumbgraph v1.0.1
Fixes for problems found by using v1.0.0 on real projects (Windows, Unity). Not released; the crate version is still 1.0.0.
Fixed
- Windows:
plumb doctor(andenrich, rule-engine detection inverify --run) reported every provider as missing because lookup used the bare name (cargo), nevercargo.exe/tsc.cmd. Bare names are now tried with thePATHEXTextensions thatstd::process::Commandcan start (.com,.exe,.bat,.cmd); Unix lookup is unchanged. plumb initprinted a Codexconfig.tomlsnippet with a\\?\C:\...path inside a TOML basic string, which does not parse. The verbatim prefix is stripped (\\?\UNC\becomes\\) and the path is written as a TOML literal string, or an escaped basic string when it contains'or control characters. Report paths no longer show\\?\either.plumb map --budget Nwas rejected;--budgetis now a visible alias of--tokens.plumb initand.gitignore:--dry-runshows the lines it would add; it writes.plumbgraph/*+!.plumbgraph/allow.toml(the previous.plumbgraph/made the committed allow-list impossible to commit); any existing rule mentioning.plumbgraph(including!.plumbgraph/) is respected; it works in a subdirectory of a repository; CRLF files keep CRLF; a.gitignorethat is not UTF-8 (for example UTF-16 from PowerShell 5) is no longer read as empty and overwritten.
Added
- C# / Unity dead-code entry points: MonoBehaviour/ScriptableObject/NetworkBehaviour/StateMachineBehaviour/UIBehaviour messages (
Awake,Start,Update,OnTriggerEnter2D, ...), Unity attributes ([RuntimeInitializeOnLoadMethod],[MenuItem],[InitializeOnLoad], ...), and Unity callback interfaces (ISerializationCallbackReceiver,IHasCustomMenu, UI EventSystem handlers). Public methods of Unity classes stay findings with a 0.25 penalty and a UnityEvent / Animation Event fp_risk. Rules and limits:docs/PACKS.md. On Unity's open-project-1 scripts (commit 608eac9) dead-code findings went from 371 to 166 (medium 97 to 28); on Newtonsoft.Json (52fa3ae) they are identical before and after (204). plumb init --no-gitignore.- README: Windows install and PATH setup, and exactly what was tested on Windows.
Changed
- Index schema 3 / extractor 8 (new
framework_riskcolumn): existing indexes are rebuilt once.