-
Notifications
You must be signed in to change notification settings - Fork 1.1k
added a tailored CodeFormatter to Octokit #807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Nice! 🔥 dat trailing whitespace! Maybe you should change the |
@@ -8,18 +8,20 @@ public class InterfaceNotFoundException : Exception | |||
public InterfaceNotFoundException() { } | |||
|
|||
public InterfaceNotFoundException(string type) | |||
: base(CreateMessage(type)) { } | |||
: base(CreateMessage(type)) | |||
{ } | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit odd to me 😯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a look into this, and it turns out the rule is working this way due to:
- open brace always on a newline
- close brace (where trivial) is moved on to the same line
If someone wants to fight me on this and put it back, they're more than welcome to poke around and see if they can fix this over on my CodeFormatter fork - it's BraceNewLineRule
you want to look at...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaaahhh...sorry, I must have forgotten to put on my 👓 when I looked over this...it was the indentation that got me...:nothingtoseehere: :movealong: 😳
Other than those |
mutter mutter mutter |
dab7bf8
to
80719c0
Compare
Reviving this now that we're on VS2015. Go AppVeyor Go! |
added a tailored CodeFormatter to Octokit
This is wired up in the build script so you can run it at your leisure:
.\build FormatCode
The source code for the tool: shiftkey/Octokit.CodeFormatter#1
I disabled a couple of rules from the upstream codeformatter repo which go against our coding style:
using
statementThe net result is that things are actually pretty good, and we get some cleanup of whitespace for free.
AssemblyInfo.cs
?[x] update👢edAssemblyInfo.cs
contents[ ] remove copyright rename rule👢ed