Skip to content

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Aug 28, 2025

Tune rust/diagnostic/database-quality to reflect the range of values typically seen in the metrics it measures. This will greatly reduce the proportion of databases the warning triggers on, avoiding unnecessary alarm.

@geoffw0 geoffw0 requested a review from a team as a code owner August 28, 2025 16:47
@geoffw0 geoffw0 added the Rust Pull requests that update Rust code label Aug 28, 2025
@Copilot Copilot AI review requested due to automatic review settings August 28, 2025 16:47
Copy link
Contributor

@Copilot 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

This PR tunes the Rust database quality diagnostic query to reduce false positives by changing the threshold for triggering quality warnings from 95% to 50% for both call target and macro call target statistics.

  • Adjusts the percentage threshold from 95% to 50% for quality warnings
  • Consolidates the logic by moving the percentage check inline with each statistics report check

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
DatabaseQualityDiagnostics.ql Updates threshold logic to reduce false positive quality warnings
2025-08-28-diagnostic-database-quality.md Adds change note documenting the fix for spurious quality warnings

@geoffw0 geoffw0 merged commit 45d6fc0 into github:main Aug 29, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants