Add .editorconfig and fix formatting

Merged Jakub Jirutka requested to merge github/fork/jirutka/formatting into master

Merge request reports