errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.52k stars 155 forks source link

lint more than comments in code #884

Closed ilrudie closed 3 months ago

ilrudie commented 3 months ago

Check for existing issues

Describe the feature

It would be great if code types, go/rust/c/etc..., could do more than just lint the comments. I'm thinking static strings would be very handy to lint especially if it is something that can be toggled in settings. Ignoring things like function names, variable names and structures makes a lot of sense but often static strings are things that will be output to a user so the ability to lint those would be great.

ccoVeille commented 3 months ago

I can confirm.

misspell (Go) helps a lot on finding typos, but I would love getting linting on string literals and fmt.Sprinf family

jdkato commented 3 months ago

If I were to change this, I'm almost certain someone would come along and dislike that strings are now linted. So, I'm going to close this in favor of #769.

The idea is to allow users to write tree-sitter queries to specify exactly what they'd like to lint.

ilrudie commented 3 months ago

Yup. Any change like this is bound to upset someone. Configurable seems like a good alternative. TY