SteamBot icon indicating copy to clipboard operation
SteamBot copied to clipboard

Consistent coding conventions?

Open ThereWasADream opened this issue 10 years ago • 2 comments

While working on a pull request for Bot.cs, I noticed there didn't seem to be a consistent coding convention. Furthermore, Contributing.md (https://github.com/Jessecar96/SteamBot/blob/master/CONTRIBUTING.md) doesn't include guidelines for more than indentation and brackets.

I was under the impression you all use Microsoft's coding conventions, but when I reformatted under MS Visual Studio's rules, there were more changes than I would have expected. Since I don't want to mess up my first pull request, I thought I'd ask if this would be expected or not.

See differences here: https://github.com/Jessecar96/SteamBot/compare/master...ThereWasADream:Pull-Requests

(This includes the other changes, not just the formatting changes)

If everyone's OK with the format changes, I'll just go ahead with the pull request. If not, what rules should I be using?

ThereWasADream avatar Jul 25 '15 20:07 ThereWasADream

I agree, we should reformat the files someday to be more consistent. The reason I never did is that it would break the existing open PR's.

BlueRaja avatar Jul 25 '15 20:07 BlueRaja

In that case, if there aren't any rules in place already, I think we should just use MS Visual studio's rules. They seem to be as close to what Steambot already uses as possible. On Jul 25, 2015 4:09 PM, "BlueRaja" [email protected] wrote:

I agree, we should reformat the files someday to be more consistent. The reason I never did is that it would break the existing PR's.

— Reply to this email directly or view it on GitHub https://github.com/Jessecar96/SteamBot/issues/781#issuecomment-124882817 .

ThereWasADream avatar Jul 25 '15 20:07 ThereWasADream