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

feat(rome_cli): exit with error if there are warnings #4676

Merged
merged 3 commits into from
Jul 10, 2023

Conversation

ematipico
Copy link
Contributor

@ematipico ematipico commented Jul 10, 2023

Summary

Closes #4552

Add a new --error-on-warnings, to instruct the CLI to exit with an error code if there are at least warnings emitted.

I took the opportunity to normalize the max default diagnostics across the board. I was not too fond of the fact that we had different defaults based on the command, which was impossible to document correctly.

Test Plan

Added new test cases.

@netlify
Copy link

netlify bot commented Jul 10, 2023

Deploy Preview for docs-rometools canceled.

Name Link
🔨 Latest commit 6642890
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/64abbb40ecfb12000801a8c3

@github-actions github-actions bot added the A-CLI Area: CLI label Jul 10, 2023
@ematipico ematipico force-pushed the feat/exit-error-on-warnings branch from bc77b02 to 6642890 Compare July 10, 2023 08:03
@ematipico ematipico merged commit def7584 into main Jul 10, 2023
@ematipico ematipico deleted the feat/exit-error-on-warnings branch July 10, 2023 11:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-CLI Area: CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📎 Allow Rome to exit with an error code on lint warnings
1 participant