Verified Commit ce99aedc authored by Oscar Campos's avatar Oscar Campos
Browse files

chore: ran goreturns on project

parent de0277fc
Pipeline #157758404 failed with stages
in 51 seconds
......@@ -32,9 +32,10 @@ code_format_analysys:
stage: code_health
script:
- go get -u github.com/sqs/goreturns
- if [[ $(goreturns -d .) -eq "" ]]; then echo "goreturns check successful"; exit 0; fi
- if [[ $(goreturns -d ./gdnative && goreturns -d ./cmd) -eq "" ]]; then echo "goreturns check successful"; exit 0; fi
- echo "ERROR - goreturns check failed - please run goreturns on your code and commit again"
- goreturns -d .
- goreturns -d ./gdnative
- goreturns -d ./cmd
- exit 1
allow_failure: false
except:
......
......@@ -62,7 +62,7 @@ func (cmd *generateCmd) Run(ctx *context) error {
for pkg, p := range packages {
data := RegistryData{ Package: pkg, Classes: map[string]gdnative.Registrable{} }
data := RegistryData{Package: pkg, Classes: map[string]gdnative.Registrable{}}
registrable := gdnative.LookupRegistrableTypeDeclarations(p)
if len(registrable) == 0 {
fmt.Printf("not found any registrable sources on %s", ctx.Path)
......
......@@ -13,7 +13,7 @@ import (
"runtime"
"strings"
"github.com/vitaminwater/cgo.wchar"
wchar "github.com/vitaminwater/cgo.wchar"
)
// Log is used to log messages to Godot, and makes them viewable inside the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment