goccmack / gocc

Parser / Scanner Generator
Other
618 stars 48 forks source link

Normalize editing configurations and line endings #119

Closed kfsone closed 3 years ago

kfsone commented 3 years ago

These changes are intended to ensure that people working across different IDEs and editors have the greatest chance of not introducing whitespace or encoding changes in their PRs. The gitattributes addition is based on my cross-platform experience when using windows and wsl2.

editorconfig reflects the variety of editors/ides I'm having to use across platforms and is supported, at least, by vim, emacs, vscode and goland.

--- demonstration ---

I created a fake .vimrc that set tab size to 9 and told it to replace tabs with spaces too, then applied the editor config:

https://www.youtube.com/watch?v=TaF7OJcM7Xk