Add code conventions to project settings

I had fun trying to add code formatting conventions to the project and took the opportunity to add more static checks, warnings and errors.

This can be configure in "Project > Properties".