Skip to content

Commit

Permalink
chore: enable all go vet analyzers in CI (#41)
Browse files Browse the repository at this point in the history
* Enable all go vet analyzers in CI

Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>

* Enable fieldalignment go vet analyzer

Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>

---------

Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
  • Loading branch information
patriciareinoso committed Jan 12, 2024
1 parent 88ead3b commit b3b8ace
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
9 changes: 2 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,8 @@ linters-settings:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
# enable or disable analyzers by name
enable:
- atomicalign
enable-all: false
disable:
- shadow
disable-all: false
# enable all analyzers
enable-all: true
depguard:
list-type: blacklist
include-go-root: false
Expand Down
8 changes: 4 additions & 4 deletions context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ import (
type AUSFContext struct {
suciSupiMap sync.Map
UePool sync.Map
snRegex *regexp.Regexp
NfId string
GroupID string
SBIPort int
RegisterIPv4 string
BindingIPv4 string
Url string
UriScheme models.UriScheme
NrfUri string
UdmUeauUrl string
UriScheme models.UriScheme
NfService map[models.ServiceName]models.NfService
PlmnList []models.PlmnId
UdmUeauUrl string
snRegex *regexp.Regexp
SBIPort int
}

type AusfUeContext struct {
Expand Down
2 changes: 1 addition & 1 deletion factory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ type Configuration struct {
Sbi *Sbi `yaml:"sbi,omitempty"`
ServiceNameList []string `yaml:"serviceNameList,omitempty"`
NrfUri string `yaml:"nrfUri,omitempty"`
PlmnSupportList []models.PlmnId `yaml:"plmnSupportList,omitempty"`
GroupId string `yaml:"groupId,omitempty"`
PlmnSupportList []models.PlmnId `yaml:"plmnSupportList,omitempty"`
}

type Sbi struct {
Expand Down

0 comments on commit b3b8ace

Please sign in to comment.