Skip to content

Commit

Permalink
chore: Enables gofmt linting (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume authored Jan 3, 2024
1 parent d70e4a1 commit 9bb591e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ linters-settings:

linters:
enable:
# - gofmt
- gofmt
- govet
# - errcheck
# - staticcheck
Expand Down
2 changes: 1 addition & 1 deletion factory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

"gopkg.in/yaml.v2"

"github.com/omec-project/udr/logger"
"github.com/omec-project/config5g/proto/client"
protos "github.com/omec-project/config5g/proto/sdcoreConfig"
"github.com/omec-project/udr/logger"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion producer/data_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"go.mongodb.org/mongo-driver/bson/primitive"

"github.com/omec-project/MongoDBLibrary"
protos "github.com/omec-project/config5g/proto/sdcoreConfig"
"github.com/omec-project/http_wrapper"
"github.com/omec-project/openapi/models"
udr_context "github.com/omec-project/udr/context"
"github.com/omec-project/udr/logger"
"github.com/omec-project/udr/util"
protos "github.com/omec-project/config5g/proto/sdcoreConfig"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion util/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

//+build !debug
//go:build !debug
// +build !debug

package util

Expand Down
3 changes: 2 additions & 1 deletion util/path_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// SPDX-License-Identifier: Apache-2.0
//

//+build debug
//go:build debug
// +build debug

package util

Expand Down

0 comments on commit 9bb591e

Please sign in to comment.