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/23 02:07:58 UTC

[GitHub] [apisix-ingress-controller] lingsamuel opened a new issue #884: Makefile: add a unified formatting tool

lingsamuel opened a new issue #884:
URL: https://github.com/apache/apisix-ingress-controller/issues/884


   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)
   ```
   
   _Originally posted by @lingsamuel in https://github.com/apache/apisix-ingress-controller/issues/879#issuecomment-1047597239_


-- 
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



[GitHub] [apisix-ingress-controller] lingsamuel closed issue #884: Makefile: add a formatting tool

Posted by GitBox <gi...@apache.org>.
lingsamuel closed issue #884:
URL: https://github.com/apache/apisix-ingress-controller/issues/884


   


-- 
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



[GitHub] [apisix-ingress-controller] mangoGoForward commented on issue #884: Makefile: add a formatting tool

Posted by GitBox <gi...@apache.org>.
mangoGoForward commented on issue #884:
URL: https://github.com/apache/apisix-ingress-controller/issues/884#issuecomment-1048403137


   I want to try and make a test.


-- 
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