Implement unittest server 05112023 #43
Annotations
10 errors and 10 warnings
internal/utils/auth_test.go#L178
178-222 lines are duplicate of `internal/utils/auth_test.go:224-268` (dupl)
|
internal/utils/auth_test.go#L224
224-268 lines are duplicate of `internal/utils/auth_test.go:178-222` (dupl)
|
internal/utils/auth_test.go#L320
320-358 lines are duplicate of `internal/utils/auth_test.go:360-398` (dupl)
|
internal/utils/auth_test.go#L360
360-398 lines are duplicate of `internal/utils/auth_test.go:400-438` (dupl)
|
internal/utils/auth_test.go#L400
400-438 lines are duplicate of `internal/utils/auth_test.go:320-358` (dupl)
|
internal/server/controller/grpc_secret_controller.go#L192
Error return value of `s.syncStatus.RemoveClientSync` is not checked (errcheck)
|
internal/server/controller/grpc_secret_controller.go#L266
Error return value of `stream.Send` is not checked (errcheck)
|
cmd/testClient/main.go#L74
Error return value of `blockStoreStream.CloseSend` is not checked (errcheck)
|
internal/server/controller/grpc_controller_init_test.go#L57
Error return value of `utils.CreateCertificate` is not checked (errcheck)
|
internal/server/config/config.go#L68
don't use `init` function (gochecknoinits)
|
internal/models/secrets.go#L6
var-naming: struct field Guid should be GUID (revive)
|
internal/models/secrets.go#L19
var-naming: struct field Guid should be GUID (revive)
|
internal/models/secrets.go#L25
var-naming: struct field Guid should be GUID (revive)
|
internal/server/entity/sync.go#L35
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
internal/client/infrastrucrure/filemanager/userauth.go#L27
unexported-return: exported func NewUserAuth returns unexported type *filemanager.userAuth, which can be annoying to use (revive)
|
internal/server/infrastructure/repository.go#L34
unexported-return: exported func InitNewRepository returns unexported type *infrastructure.repository, which can be annoying to use (revive)
|
internal/server/infrastructure/repository.go#L76
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
internal/server/infrastructure/repository.go#L11
blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
|
internal/server/infrastructure/repository.go#L15
blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
|
internal/server/infrastructure/user_repository.go#L306
unexported-return: exported func NewUserRepository returns unexported type *infrastructure.userRepository, which can be annoying to use (revive)
|
The logs for this run have expired and are no longer available.
Loading