-
Notifications
You must be signed in to change notification settings - Fork 52
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
Go Code format checker and formatter #171
Conversation
5f11925
to
f59552f
Compare
It is good to bypass the coverage check for only the format change. |
Yes I support that..
Can admin help me forcing merging this change as it has passed all checks
except coverage?
…On Tue, 14 Nov, 2023, 3:57 pm xumia, ***@***.***> wrote:
It is good to bypass the coverage check for only the format change.
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMN6I5NVI5FI7LOSOMIHPATYENBRRAVCNFSM6AAAAAA6V4FX6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBZHEZTMMZRGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
|
Makefile
Outdated
FORMAT_CHECK = $(BUILD_DIR)/.formatcheck | ||
FORMAT_LOG = $(BUILD_DIR)/go_format.log | ||
# Find all .go files excluding vendor, build, and patches files | ||
GO_FILES := $(shell find . -type f -name '*.go' ! -path './vendor/*' ! -path './build/*' ! -path './patches/*' ! -path './proto/*') |
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.
In case of swsscommon, the go file is auto-generated by a foolproof swig tool, which does not require rigorous go formatting. So, can you add 'swsscommon/*' to the excluded paths?
9c8edca
to
6aa548d
Compare
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.
Approval from Google.
5a3c710
to
88f5ece
Compare
Also formatted the files which dont adhere to go formats. Build will fail if there exists any formatting issue
Replaced with #182 as it supports formatting using Bookworm's Golang version(go1.19) |
Also formatted the files which dont adhere to go formats. Build will fail if there exists any formatting issue