Skip to content

Conversation

@dejan-lukic
Copy link
Contributor

Currently, lines that qlty.sh does not report on get marked as missed (see pic below).

This PR introduces a CoverageState enum for the coverage state and maps those stats to the relevant qlty-coverage-{state} css class. It also defaults the hitCount to -1 (omit) instead of 0 (miss)

Before

before

After

after

Copilot AI review requested due to automatic review settings July 23, 2025 02:53
Copy link

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 improves the coverage state representation by distinguishing between lines that are missed (no coverage) versus lines that are omitted (not tracked for coverage). The change introduces proper state management using an enum and updates the default behavior to mark untracked lines as omitted rather than missed.

  • Introduces a CoverageState enum to clearly define the three coverage states (hit, miss, omit)
  • Changes the default hit count from 0 (miss) to -1 (omit) for lines not reported by qlty.sh
  • Refactors the coverage class assignment logic to use a state-based mapping approach

@dejan-lukic dejan-lukic changed the title Mark existing lines as omitted instead of missed Mark lines that qlty.sh does not report on as omitted instead of missed Jul 25, 2025
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