File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,12 @@ linters-settings:
33
33
simplify : true
34
34
35
35
issues :
36
+ exclude-use-default : false
36
37
exclude-rules :
37
38
- path : _test\.go
38
39
linters :
39
40
- gocyclo
40
41
- dupl
41
42
- gosec
43
+ exclude :
44
+ - should have a package comment
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func (e HTTPErrorResponse) String() string {
32
32
return res .String ()
33
33
}
34
34
35
- // HasError validates that error is not emptyp
35
+ // NotEmpty validates that error is not emptyp
36
36
func (e HTTPErrorResponse ) NotEmpty () bool {
37
37
return len (e .Error ) > 0 || len (e .Message ) > 0 || len (e .Description ) > 0
38
38
}
Original file line number Diff line number Diff line change @@ -255,6 +255,8 @@ type GetGroupsParams struct {
255
255
BriefRepresentation * bool `json:"briefRepresentation,string,omitempty"`
256
256
}
257
257
258
+ // MarshalJSON is a custom json marshaling function to automatically set the Full and BriefRepresentation properties
259
+ // for backward compatibility
258
260
func (obj GetGroupsParams ) MarshalJSON () ([]byte , error ) {
259
261
type Alias GetGroupsParams
260
262
a := (Alias )(obj )
You can’t perform that action at this time.
0 commit comments