Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_cli): Fix max diagnostic counts #3869

Merged
merged 2 commits into from
Nov 28, 2022
Merged

Conversation

MichaReiser
Copy link
Contributor

This PR fixes the max diagnostics count for the linter.

The issue was that process_file reports a Success if a file has no diagnostic, even if the file has skipped diagnostics.

This PR changes process_file to return a Message if a file has reported diagnostics or any skipped diagnostics.

This PR further fixes an issue with the symlink tests that produced different output on unix/macos because the length of the resolved temp directory differs (/tmp vs /var/tmp.../), resulting in shorter or longer horizontal lines

Micha Reiser added 2 commits November 26, 2022 13:07
This PR fixes the max diagnostics count for the linter.

The issue was that `process_file` reports a `Success` if a file has no diagnostic even if the file has skipped diagnostics.

This PR changes `process_file` to return a `Message` if a file has reported diagnostics or any skipped diagnostics.
@netlify
Copy link

netlify bot commented Nov 26, 2022

Deploy Preview for docs-rometools canceled.

Name Link
🔨 Latest commit a0c84ce
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/63823a22a19432000976e623

@MichaReiser MichaReiser marked this pull request as ready for review November 26, 2022 16:21
@MichaReiser MichaReiser added the A-CLI Area: CLI label Nov 27, 2022
@MichaReiser MichaReiser added this to the 11.0.0 milestone Nov 27, 2022
@MichaReiser MichaReiser merged commit 77261b3 into main Nov 28, 2022
@MichaReiser MichaReiser deleted the fix/max-diagnostics branch November 28, 2022 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-CLI Area: CLI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants