Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
husniMDB committed Sep 9, 2024
1 parent b9b285e commit 9735743
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion auth/device_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func TestConfig_RevokeToken(t *testing.T) {
config, mux, teardown := setup()
defer teardown()

mux.HandleFunc("/api/private/unauth/account/device/revoke", func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc("/api/private/unauth/account/device/revoke", func(_ http.ResponseWriter, r *http.Request) {
testMethod(t, r)
})

Expand Down
2 changes: 1 addition & 1 deletion opsmngr/agents_api_keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/go-test/deep"
)

const projectID = "5e66185d917b220fbd8bb4d1" //nolint:gosec // not a credential
const projectID = "5e66185d917b220fbd8bb4d1" // not a credential

func TestAgentsServiceOp_ListAgentAPIKeys(t *testing.T) {
client, mux, teardown := setup()
Expand Down
6 changes: 3 additions & 3 deletions opsmngr/automation_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ type MongoDBUser struct {
Username string `json:"user"` //nolint:tagliatelle // Username is a better name than just user
}

// MongoDBDeletedUser user to delete from DBs list
// MongoDBDeletedUser user to delete from DBs list.
type MongoDBDeletedUser struct {
Username string `json:"user"`
Databases []string `json:"dbs"`
Username string `json:"user"` //nolint:tagliatelle // used as in the API
Databases []string `json:"dbs"` //nolint:tagliatelle // used as in the API
}

// AuthenticationRestriction of a database user.
Expand Down
2 changes: 1 addition & 1 deletion opsmngr/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type User struct {
Links []*Link `json:"links,omitempty"`
MobileNumber string `json:"mobileNumber,omitempty"`
Password string `json:"password,omitempty"`
TeamIds []string `json:"teamIds,omitempty"`
TeamIds []string `json:"teamIds,omitempty"` //nolint:tagliatelle // used as in the API

Check failure on line 52 in opsmngr/users.go

View workflow job for this annotation

GitHub Actions / golangci-lint

var-naming: struct field TeamIds should be TeamIDs (revive)
Roles []*UserRole `json:"roles,omitempty"`
Username string `json:"username"`
Country string `json:"country,omitempty"`
Expand Down

0 comments on commit 9735743

Please sign in to comment.