OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
99 stars 38 forks source link

Apply code style #59

Open rpavlik opened 9 years ago

rpavlik commented 9 years ago

Right now code style is kind of hit and miss and inconsistent. Doesn't look like there were a ton of tools for this in C# besides having Visual Studio do it for you (surprisingly enough, given I figured it was easier to parse/lex/sema than C++), but the Roslyn .net core project apparently recently open source a tool that they're using to apply and enforce a code style, and it's probably worth looking into: https://github.com/dotnet/codeformatter

JeroMiya commented 9 years ago

I don't have any experience with this tool in particular, but based on my general experience, I would caution against an automated tool to reformat code. These tools tend to be quite fragile, even when they're based on a robust code-AST API like roslyn.

rpavlik commented 9 years ago

Well, we're using clang-format on all the C++ code with good results - there again, built on a compiler infrastructure.