feat: added golint to pipeline #15
Annotations
3 errors and 11 warnings
golangci-lint:
users-profile/controllers/user_controller.go#L180
Error return value of `results.Close` is not checked (errcheck)
|
golangci-lint:
users-profile/main.go#L21
Error return value of `router.Run` is not checked (errcheck)
|
golangci-lint
issues found
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
golangci-lint:
users-profile/responses/user_responses.go#L4
exported: comment on exported type UserResponse should be of the form "UserResponse ..." (with optional leading article) (revive)
|
golangci-lint:
users-profile/responses/user_responses.go#L1
package-comments: package comment should be of the form "Package responses ..." (revive)
|
golangci-lint:
users-profile/models/user_model.go#L9
var-naming: struct field Id should be ID (revive)
|
golangci-lint:
users-profile/models/user_model.go#L6
exported: comment on exported type User should be of the form "User ..." (with optional leading article) (revive)
|
golangci-lint:
users-profile/models/user_model.go#L1
package-comments: package comment should be of the form "Package models ..." (revive)
|
golangci-lint:
users-profile/configs/mongodb_setup.go#L42
exported: comment on exported var DB should be of the form "DB ..." (revive)
|
golangci-lint:
users-profile/configs/mongodb_setup.go#L1
package-comments: package comment should be of the form "Package configs ..." (revive)
|
golangci-lint:
users-profile/configs/load_env.go#L1
package-comments: package comment should be of the form "Package configs ..." (revive)
|
golangci-lint:
users-profile/controllers/user_controller.go#L22
exported: comment on exported function CreateAUser should be of the form "CreateAUser ..." (revive)
|
golangci-lint:
users-profile/controllers/user_controller.go#L66
exported: comment on exported function GetAUser should be of the form "GetAUser ..." (revive)
|
The logs for this run have expired and are no longer available.
Loading