-
Notifications
You must be signed in to change notification settings - Fork 276
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
test formatting issues as part of sanity check #84
Conversation
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.
LGTM :) One question but not an issue really
Sources/Logging/Logging.swift
Outdated
let systemStderr = Glibc.stderr! | ||
let systemStdout = Glibc.stdout! | ||
let systemStderr = Glibc.stderr! | ||
let systemStdout = Glibc.stdout! | ||
#endif |
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.
nit / question: I was under the impression "official formatting" for #if is to not indent?
Either way, happy with having an automatted formatted so whichever we want is fine, just confused about this one.
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.
personally i don't have a strong opinion on concrete format rules. what we agreed on in the past is captured in the repo's .swiftformat
file, so we can change it if we want to agree on a different set of rules
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.
Yeah same, though this one is surprising... curious if choice was conscious on the #ifs
@weissi ? As mentioned, not an issue and LGTM as I'm more than happy to have automated formatter
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'd go with whatever Xcode does just because it's a pain otherwise because it'll re-indent in the way it thinks it's right.
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.
} | ||
set { | ||
metadata[metadataKey] = newValue | ||
self.metadata[metadataKey] = newValue |
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.
馃憤
/cc @ianpartridge |
@@ -1,56 +1,35 @@ | |||
ARG ubuntu_version=18.04 | |||
FROM ubuntu:$ubuntu_version | |||
ARG swift_version=5.0 |
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.
馃檶
motivaiton: unified format changes: * use official docker image 馃帀 * fix outstanding formatting issues * add a call to swiftformat as part of sanity script * fix sanity script language check debugging statements
motivaiton: unified format
changes: