Skip to content

Enable CA1827, CA1828, and CA1829#9424

Merged
glen-84 merged 1 commit intomainfrom
gai/CA1827-CA1828-CA1829
Mar 23, 2026
Merged

Enable CA1827, CA1828, and CA1829#9424
glen-84 merged 1 commit intomainfrom
gai/CA1827-CA1828-CA1829

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented Mar 23, 2026

Summary of the changes (Less than 80 chars)

  • Enable CA1827, CA1828, and CA1829.

Copilot AI review requested due to automatic review settings March 23, 2026 08:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables additional .NET analyzers (CA1827, CA1828, CA1829) at warning severity to encourage using Any()/AnyAsync() and Length/Count properties instead of Count()-based patterns.

Changes:

  • Enable CA1827: prefer Any() over Count()/LongCount() for emptiness checks.
  • Enable CA1828: prefer AnyAsync() over CountAsync()/LongCountAsync() for async emptiness checks.
  • Enable CA1829: prefer Length/Count property over Enumerable.Count() where applicable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@glen-84 glen-84 merged commit 7af1f98 into main Mar 23, 2026
253 of 255 checks passed
@glen-84 glen-84 deleted the gai/CA1827-CA1828-CA1829 branch March 23, 2026 08:41
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (ff721c0) to head (c2924ff).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #9424   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants