Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
PimPam Games Studio
gdnative-go
Commits
ce99aedc
Verified
Commit
ce99aedc
authored
Jun 18, 2020
by
Oscar Campos
Browse files
chore: ran goreturns on project
parent
de0277fc
Pipeline
#157758404
failed with stages
in 51 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
.gitlab-ci.yml
.gitlab-ci.yml
+3
-2
cmd/gdnativego/generate.go
cmd/gdnativego/generate.go
+1
-1
gdnative/log.go
gdnative/log.go
+1
-1
No files found.
.gitlab-ci.yml
View file @
ce99aedc
...
...
@@ -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
:
...
...
cmd/gdnativego/generate.go
View file @
ce99aedc
...
...
@@ -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
)
...
...
gdnative/log.go
View file @
ce99aedc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment