Skip to content

fix: reduce defensive precision false positives - #85

Merged
alxxjohn merged 2 commits into
mainfrom
fix/defensive-precision-followup
Jul 28, 2026
Merged

fix: reduce defensive precision false positives#85
alxxjohn merged 2 commits into
mainfrom
fix/defensive-precision-followup

Conversation

@alxxjohn

@alxxjohn alxxjohn commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • narrow defensive.bounds-assumption so object/dictionary keys and Promise.all tuple destructuring are not treated as unchecked sequence indexing
  • narrow defensive.missing-resource-limit so upload/config names do not count as boundary reads, while raw body reads still do
  • skip UI/React helper contexts for defensive null-assumption and unvalidated-boundary-input checks

Tests

  • env -u GOROOT GOCACHE=/private/tmp/codeguard-go-cache go test ./tests/checks

Knowledge Captured

  • .claude/knowledge/testing-patterns.md: defensive positive fixtures should avoid UI-ish render* names unless intentionally testing UI suppression.

@alxxjohn
alxxjohn merged commit 4ce5e1d into main Jul 28, 2026
16 checks passed
alxxjohn added a commit that referenced this pull request Jul 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.3.7](v1.3.6...v1.3.7)
(2026-07-28)


### Bug Fixes

* narrow defensive precision broadening
([3a237f0](3a237f0))
* reduce defensive false positives
([81388fd](81388fd))
* reduce defensive precision false positives
([#85](#85))
([4ce5e1d](4ce5e1d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
@alxxjohn
alxxjohn deleted the fix/defensive-precision-followup branch July 29, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant