ondras / rot.js

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
https://ondras.github.io/rot.js/hp/
BSD 3-Clause "New" or "Revised" License
2.32k stars 254 forks source link

Add github action for typos. #220

Closed zhong-yiyu closed 2 months ago

zhong-yiyu commented 2 months ago

This pull request is intended to fix #219 . By adding an extra github action containing steps to check src, tests, tools, addons and examples code, typos can be captured during build stage. However, due to the action's own design, any typos found would cause the action to exit with errors. I believe this is intended to urge users to fix the typos instantly. Only way to prevent this error is submitting codes without typos.

It can't be done to make current code base go through typos checking without errors, some changes to source code must be made.

ondras commented 2 months ago

Nice, thanks @zhong-yiyu !