You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/22 09:33:03 UTC
[GitHub] [apisix-ingress-controller] lingsamuel commented on issue #879: Makefile: add `update-` for `verify-`
lingsamuel commented on issue #879:
URL: https://github.com/apache/apisix-ingress-controller/issues/879#issuecomment-1047597239
We may also need a unified formatting tool (just a suggestion).
Example script:
```bash
#!/bin/bash
set -e
go install github.com/incu6us/goimports-reviser/v2@latest
PROJECT_NAME=github.com/apache/apisix-ingress-controller
while IFS= read -r -d '' file; do
goimports-reviser -file-path "$file" -project-name $PROJECT_NAME
done < <(find . -name '*.go' -not -path "./test/*" -print0)
PROJECT_NAME=github.com/apache/apisix-ingress-controller/test/e2e
while IFS= read -r -d '' file; do
goimports-reviser -file-path "$file" -project-name $PROJECT_NAME
done < <(find . -name '*.go' -path "./test/*" -print0)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org