How can I config the error message
NealST opened this issue · comments
NealST commented
the default error message "failed for rules: kebab-case" is not easy understandable, so I want to config my error message for it.
Lucas Löffel commented
Hey @NealST, what error message would you like to see?
Sam 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"
NealST commented
@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 需要使用驼峰格式编写