Merge pull request #121 from rishavmehra/rishavmehra/improvement #100
Annotations
45 errors and 45 warnings
lint (mux-sql):
mux-sql/app.go#L110
Error return value of `w.Write` is not checked (errcheck)
|
lint (mux-sql):
mux-sql/app.go#L140
Error return value of `r.Body.Close` is not checked (errcheck)
|
lint (mux-sql):
mux-sql/app.go#L164
Error return value of `r.Body.Close` is not checked (errcheck)
|
lint (mux-sql):
mux-sql/app.go#L1
File is not `gofmt`-ed with `-s` (gofmt)
|
lint (mux-sql):
mux-sql/app.go#L29
exported: comment on exported method App.Initialize should be of the form "Initialize ..." (revive)
|
lint (mux-sql):
mux-sql/app.go#L53
exported: comment on exported method App.Run should be of the form "Run ..." (revive)
|
lint (mux-sql):
mux-sql/app_test.go#L17
Error return value of `a.Initialize` is not checked (errcheck)
|
lint (mux-sql):
mux-sql/app_test.go#L33
Error return value of `a.DB.Exec` is not checked (errcheck)
|
lint (mux-sql):
mux-sql/app_test.go#L34
Error return value of `a.DB.Exec` is not checked (errcheck)
|
lint (mux-sql):
mux-sql/app_test.go#L80
Error return value of `json.Unmarshal` is not checked (errcheck)
|
lint (sse-svelte):
sse-svelte/main.go#L1
package-comments: should have a package comment (revive)
|
lint (sse-svelte)
issues found
|
lint (graphql-sql):
graphql-sql/main.go#L1
package-comments: should have a package comment (revive)
|
lint (graphql-sql)
issues found
|
lint (users-profile):
users-profile/main.go#L1
package-comments: should have a package comment (revive)
|
lint (users-profile)
issues found
|
lint (gin-redis):
gin-redis/server/server.go#L4
File is not `gofmt`-ed with `-s` (gofmt)
|
lint (gin-redis):
gin-redis/server/server.go#L1
package-comments: should have a package comment (revive)
|
lint (gin-redis)
issues found
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/app/app.go#L26
Error return value of `db.Close` is not checked (errcheck)
|
lint (fasthttp-postgres)
issues found
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L42
Error return value of `res.Body.Close` is not checked (errcheck)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L78
Error return value of `res.Body.Close` is not checked (errcheck)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L114
Error return value of `res.Body.Close` is not checked (errcheck)
|
lint (http-pokeapi):
http-pokeapi/response.go#L31
Error return value of `w.Write` is not checked (errcheck)
|
lint (http-pokeapi):
http-pokeapi/internal/models/location_models.go#L1
File is not `gofmt`-ed with `-s` (gofmt)
|
lint (http-pokeapi):
http-pokeapi/internal/models/pokemon_models.go#L1
File is not `gofmt`-ed with `-s` (gofmt)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L1
File is not `gofmt`-ed with `-s` (gofmt)
|
lint (http-pokeapi)
issues found
|
lint (echo-mysql):
echo-mysql/uss/store.go#L60
Error return value of `db.Close` is not checked (errcheck)
|
lint (echo-mysql):
echo-mysql/main.go#L36
S1008: should use 'return c.Request().RequestURI == "/healthcheck"' instead of 'if c.Request().RequestURI == "/healthcheck" { return true }; return false' (gosimple)
|
lint (echo-mysql):
echo-mysql/uss/store.go#L52
S1038: should use log.Fatalf(...) instead of log.Fatal(fmt.Sprintf(...)) (gosimple)
|
lint (echo-mysql)
issues found
|
lint (go-twilio):
go-twilio/main.go#L70
SA1012: do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (staticcheck)
|
lint (go-twilio)
issues found
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L98
Error return value of `res.Body.Close` is not checked (errcheck)
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L113
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L129
Error return value of `res.Body.Close` is not checked (errcheck)
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L145
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L175
Error return value of `res.Body.Close` is not checked (errcheck)
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L233
Error return value of `res.Write` is not checked (errcheck)
|
lint (mux-elasticsearch)
issues found
|
lint (go-jwt):
go-jwt/main.go#L136
Error return value of `db.Close` is not checked (errcheck)
|
lint (go-jwt):
go-jwt/main.go#L144
Error return value of `router.Run` is not checked (errcheck)
|
lint (go-jwt)
issues found
|
lint (mux-sql)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (sse-svelte)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (graphql-sql)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (gin-mongo)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (S3-Keploy)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (users-profile)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (echo-sql)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (gin-redis)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (mux-mysql)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (fasthttp-postgres)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/entity/model.go#L1
package-comments: should have a package comment (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/repository/model.go#L1
package-comments: should have a package comment (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/repository/repository.go#L52
var-naming: method GetBookById should be GetBookByID (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/repository/repository.go#L70
var-naming: method GetBooksByAuthorId should be GetBooksByAuthorID (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/repository/statements.go#L6
var-naming: const getBookById should be getBookByID (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/repository/statements.go#L10
var-naming: const getBooksByAuthorId should be getBooksByAuthorID (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/handlers/handler.go#L50
var-naming: method GetBookById should be GetBookByID (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/handlers/handler.go#L51
var-naming: var bookId should be bookID (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/handlers/handler.go#L65
var-naming: method GetBooksByAuthorId should be GetBooksByAuthorID (revive)
|
lint (fasthttp-postgres):
fasthttp-postgres/internal/handlers/handler.go#L66
var-naming: var authorId should be authorID (revive)
|
lint (http-pokeapi)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L89
receiver-naming: receiver name c should be consistent with previous receiver name client for Client (revive)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L11
var-naming: don't use underscores in Go names; const base_url should be baseURL (revive)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L18
var-naming: don't use underscores in Go names; var end_url should be endURL (revive)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L19
var-naming: don't use underscores in Go names; var full_url should be fullURL (revive)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L54
var-naming: don't use underscores in Go names; var end_url should be endURL (revive)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L55
var-naming: don't use underscores in Go names; var full_url should be fullURL (revive)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L90
var-naming: don't use underscores in Go names; var end_url should be endURL (revive)
|
lint (http-pokeapi):
http-pokeapi/internal/pokeapi/poke_req.go#L91
var-naming: don't use underscores in Go names; var full_url should be fullURL (revive)
|
lint (http-pokeapi):
http-pokeapi/response.go#L21
var-naming: func respondWithJson should be respondWithJSON (revive)
|
lint (http-pokeapi):
http-pokeapi/location.go#L9
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
lint (echo-mysql)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (echo-mysql):
echo-mysql/uss/short.go#L1
package-comments: should have a package comment (revive)
|
lint (echo-mysql):
echo-mysql/uss/store.go#L19
exported: type name will be used as uss.USSStore by other packages, and that stutters; consider calling this Store (revive)
|
lint (echo-mysql):
echo-mysql/uss/store.go#L73
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
lint (echo-mysql):
echo-mysql/main.go#L1
package-comments: should have a package comment (revive)
|
lint (echo-mysql):
echo-mysql/main.go#L55
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
lint (echo-mysql):
echo-mysql/main.go#L70
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
lint (go-twilio)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (go-twilio):
go-twilio/main.go#L1
package-comments: should have a package comment (revive)
|
lint (mux-elasticsearch)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L1
package-comments: should have a package comment (revive)
|
lint (mux-elasticsearch):
mux-elasticsearch/app.go#L231
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
|
lint (go-jwt)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint (go-jwt):
go-jwt/main.go#L1
package-comments: should have a package comment (revive)
|