loeffel-io / ls-lint

An extremely fast directory and filename linter - Bring some structure to your project filesystem

Home Page:https://ls-lint.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I config the error message

NealST opened this issue · comments

the default error message "failed for rules: kebab-case" is not easy understandable, so I want to config my error message for it.

Hey @NealST, what error message would you like to see?

commented

Came here to write this ☝️ .

Something like

2021/11/08 14:58:13 ./pages/test-test.md.erb should be written in snakecase 
OR
2021/11/08 14:58:13 ./pages/test-test.md.erb should have a filename written in snakecase 

might be better.

But how do you feel about adding

ls:
  .md.erb: snake_case
     error: "Custom error message with %placeholders"

@plaindocs,your said is what I want, and on the other hand, most of my users are chinese, so I want to config the error message to chinese. Something like this:

./pages/test-test.md.erb 需要使用驼峰格式编写