replaced lots of custom code with editorconfig plugin