Skip to content
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

Add formatcheck make target #3480

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Add formatcheck make target #3480

merged 1 commit into from
Feb 22, 2024

Conversation

dmitris
Copy link
Contributor

@dmitris dmitris commented Feb 9, 2024

PR adds the formatcheck makefile target to run the format.sh script with -f false - to check if the Go files are properly formatted and exit with a non-zero error code. Intended for CI usage to enforce gofmt
compliance and fail builds on deviations.

Fix #3475.

Add formatcheck makefile target to only check whether
the .go files are properly formatted without
modifying them. Intended for CI usage to enforce gofmt
compliance and fail builds on deviations.

Fix prebid#3475.

Signed-off-by: Dmitry S <[email protected]>
@bsardo bsardo changed the title add formatcheck Make target Add formatcheck Make target Feb 17, 2024
@bsardo bsardo changed the title Add formatcheck Make target Add formatcheck make target Feb 17, 2024
@bsardo bsardo merged commit c9131ab into prebid:master Feb 22, 2024
3 checks passed
@dmitris dmitris deleted the issue-3475 branch February 22, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gofmt -l . fails in the repo root due to .semgrep/adaptor files.
3 participants