-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactoring #50
Comments
|
Message call back is just three switch statements. Three of those are I think I brought get_first_not below 10. terrain::Chunk::Chunk is not great, but its three discrete parts. |
Cyclomatic complexity of current main branch.
There are also three duplicated blocks. Two are in terrain base and deal with grass initialization, the third is in terrain generation. Terrain generation will not be updated until Lua is implemented #17. |
Might be better to spend time fixing lua or multi-threading/generalizing chunks. |
Most linters warn on cyclomatic complexity of 10.
terrain::Terrain::get_path_type
has a complexity of 25.Here are all the functions that need to be refactored:
The text was updated successfully, but these errors were encountered: