Skip to content

feat(analyzers): add KEV005 fallback check - #170

Merged
thomhurst merged 1 commit into
mainfrom
issue-160-kev005
Aug 23, 2026
Merged

feat(analyzers): add KEV005 fallback check#170
thomhurst merged 1 commit into
mainfrom
issue-160-kev005

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

Summary

  • add KEV005 for void fallbacks used by provably result-returning executions
  • cover fluent chains, stable locals/aliases, composition, context-aware methods, outcome methods, and Task extensions
  • document the diagnostic and track its analyzer/public API release entries

Scope decision

Tier 3 field/property flow is deferred. Existing analyzer data flow proves stable local initializers only; inferring single-assignment members safely needs interprocedural/member-write analysis. Fields, properties, parameters, returned shields, and reassigned locals remain conservative false negatives.

Test plan

  • KEV005 focused tests (6/6)
  • dotnet run --project tests/Kevlar.Analyzers.Tests -c Release -- --timeout 5m (53/53)
  • dotnet build Kevlar.slnx -c Release (0 warnings)
  • npm run build (docs/)
  • package and run scripts/Verify-DocSnippets.ps1 (97 snippets compiled; documented pipeline executed)

Closes #160

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c800e4e1-deba-4d65-8d46-7b9269781002


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thomhurst
thomhurst merged commit 600ea55 into main Aug 23, 2026
6 checks passed
@thomhurst
thomhurst deleted the issue-160-kev005 branch August 23, 2026 13:45
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.

feat(analyzers): add KEV005 — void Fallback used with result-returning executions

1 participant