| id | 2606211910 |
|---|---|
| title | arch-fix: add trivial-accessor exemption comments in workspace.go |
| status | ✅ |
| summary | Add one-line "no test by design" comments to the trivial one-liner methods in pkg/mdsmith/workspace.go so the audit can distinguish intentional exemptions from forgotten tests. |
| model | |
| depends-on |
Audit 2026-06-21 flagged trivial one-liner
methods in
pkg/mdsmith/workspace.go.
Tests doc §"Exemptions" says:
Add a one-line comment on the function so the audit can distinguish "no test by design" from "no test, forgotten".
The affected methods are:
memFile.ClosememDir.ReadmemDir.ClosememDirEntry.Name,.IsDir,.Type,.InfomemFileInfo.Name,.Size, and the remaining one-liner interface methods
Add a one-line exemption comment to each affected trivial method. Future audits pass without flagging them.
- For each trivial one-liner method in
pkg/mdsmith/workspace.go, add a comment:// no test by design — trivial accessor - Run
go build ./...— confirm no errors. - Run
go run ./cmd/mdsmith check pkg/mdsmith/workspace.go— confirm no new lint violations.
- Every trivial one-liner method in
pkg/mdsmith/workspace.gocarries an exemption comment. -
go build ./...passes. -
mdsmith check pkg/mdsmith/workspace.goreports no new violations.