oppiliappan / statix

lints and suggestions for the nix programming language
https://git.peppe.rs/languages/statix/about
MIT License
541 stars 21 forks source link

Feature: change diagnostic output to utilize highlighting #66

Open sambacha opened 1 year ago

sambacha commented 1 year ago

The title says it all: replace the ASCII line based diagrams that point to the problem matcher instead to a highlighted based approach. A highlighted based approach would be more legible and support diagnostic messages in other languages.

Eg. Red background white foreground for the specific portion of the code that is identified as being at issue.

Can put together a few sample screen shots if that helps! Willing to put a bounty / grant to support this!

peanutbother commented 10 months ago

I think the current way of printing errors is very neat and easy on the eye. maybe adding an error-matcher mode where the output gets printed the way you describe might be a good alternative?