Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message case rules #65

Open
sentriz opened this issue Jan 16, 2025 · 1 comment
Open

Message case rules #65

sentriz opened this issue Jan 16, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@sentriz
Copy link

sentriz commented Jan 16, 2025

hi! thanks for a great linter

In our codebase, we like to have the message in sentence case. eg A user has logged in, and ideally forbid a user has logged in

is this something that's possible with sloglint?

thanks!

@sentriz sentriz changed the title Enforcing a message style Message case rules Jan 16, 2025
@tmzane
Copy link
Member

tmzane commented Feb 4, 2025

We could introduce checking of the message against a regular expression, similar to the suggestion in #56. This way you could easily enforce all your messages to be in lower case (and any other checks you can define with regexp). I'll think about the implementation, thanks for the suggestion!

@tmzane tmzane added the enhancement New feature or request label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants