Skip to content

Commit

Permalink
Add golangci.yml for ignore file
Browse files Browse the repository at this point in the history
Signed-off-by: Aisuko <[email protected]>
  • Loading branch information
Aisuko committed Jun 8, 2023
1 parent 59c270e commit 18c40e5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-testing-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.0
args: --timeout 5m --verbose
args: --config=.golangci.yml
unit-tests:
name: Unit tests
runs-on: ubuntu-22.04
Expand Down
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
run:
timeout: 5m

skip-files:
# https://github.com/meshery/meshery/issues/7761
- server/handlers/doc.go
# @Aisuko We need to fix the CI ASAP
- server/models/meshmodel/core/register.go
16 changes: 8 additions & 8 deletions server/models/meshmodel/core/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

type kind string
type groupversion string
type helperGV struct {
group string
version string
isCRD bool
}

type crd struct {
Items []crdhelper `json:"items"`
}
Expand Down Expand Up @@ -314,14 +322,6 @@ func getAPIRes(cli *kubernetes.Client) (map[string]v1.APIResource, error) {
return apiRes, nil
}

type helperGV struct {
group string
version string
isCRD bool
}
type kind string
type groupversion string

// TODO: To be moved in meshkit
func getGroupsFromResource(cli *kubernetes.Client) (hgv map[kind][]groupversion, err error) {
hgv = make(map[kind][]groupversion)
Expand Down

0 comments on commit 18c40e5

Please sign in to comment.