Skip to content

Improve linter warnings - #143

Merged
TheAssassin merged 7 commits into
mainfrom
improve-linter-warnings
Nov 1, 2026
Merged

TheAssassin merged 7 commits into
mainfrom
improve-linter-warnings

Conversation

@TheAssassin

Copy link
Copy Markdown
Member

@TheAssassin

Copy link
Copy Markdown
Member Author

Seems to work: https://github.com/TheAssassin/test-broken-appimages/actions/runs/41346919329

Needs some refactoring, though, this was too verbose before and still is. GitHub seems to render everything just fine, though. Should be fine.

A varargs based logging system that auto-detects GitHub actions environments and turns warnings and errors into annotations that are rendered nicely both in the job log and on the overview page of the workflow. Designed to replace all other logging in the long run.

So far, only die() uses the new setup, i.e., it now supports format strings. The rest of the code needs to be reviewed and changes should follow in increments to keep commits to a reasonable size.
Probably legacy code. We have this infrastructure and should use it. Yes, it's technically the same, but less duplication overall.
This allows compilers, IDEs, editors, etc. to render the format strings accordingly and provide better user feedback.
Basically any message that printed ERROR:, WARNING:, etc.
This won't leak during execution as the program terminates anyway, but it's still cleaner.
No need to print these twice: the warnings will render nicely already.
@TheAssassin
TheAssassin force-pushed the improve-linter-warnings branch from 76087c7 to 0f8148d Compare November 1, 2026 20:30
@TheAssassin

Copy link
Copy Markdown
Member Author

@probonopd asked me to merge this without any further review. Merging.

@TheAssassin
TheAssassin merged commit 4919cc4 into main Nov 1, 2026
11 checks passed
@TheAssassin
TheAssassin deleted the improve-linter-warnings branch November 1, 2026 20:38
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