Skip to content

fix: Return a non-zero error code if there are any warnings during fix.#81

Merged
JeffFaer merged 1 commit intomainfrom
jfaer/exit_1_warnings
Apr 8, 2025
Merged

fix: Return a non-zero error code if there are any warnings during fix.#81
JeffFaer merged 1 commit intomainfrom
jfaer/exit_1_warnings

Conversation

@JeffFaer
Copy link
Copy Markdown
Collaborator

@JeffFaer JeffFaer commented Apr 4, 2025

Also, report warnings even if the file is already "fixed". This seems like another bug that was lurking.

This change required less work than I was expecting. go run helpfully prints error status %d to stderr for us.

Fixes #77

@JeffFaer JeffFaer requested a review from KatrinaHoffert April 4, 2025 14:19
@JeffFaer JeffFaer enabled auto-merge (squash) April 4, 2025 14:19
@JeffFaer JeffFaer mentioned this pull request Apr 4, 2025
@JeffFaer JeffFaer merged commit 6c448bb into main Apr 8, 2025
7 checks passed
@JeffFaer JeffFaer deleted the jfaer/exit_1_warnings branch April 8, 2025 18:51
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.

Feature Request: strict mode to turn warnings into errors

2 participants