beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
57 stars 53 forks source link

Add better type support #247

Closed jauggy closed 6 months ago

jauggy commented 6 months ago

If we run mix dialyzer it will do type checking on the project and we will get MANY errors. Because of these errors it's difficult to add types and do type checking. However, following the instructions here we can run a command to create an ignore file. Basically that ignore file will be populated by all the current type errors. Then when we run the dialyzer command again, it will check this file for existing errors and ignore existing errors. It will only show new errors.