chore: json encoder cleanup (#106) #66
Annotations
9 errors and 10 warnings
render_json_test.go#L27
Error return value of `e.w.Write` is not checked (errcheck)
|
engine.go#L14
interface method Render must have named param for type io.Writer (inamedparam)
|
genericbufferpool.go#L8
interface method Put must have all named params (inamedparam)
|
render_json_test.go#L22
NewEncoder returns interface (github.com/unrolled/render.JSONEncoder) (ireturn)
|
render_json_test.go#L28
return with no blank line before (nlreturn)
|
helpers.go#L12
fmt.Errorf can be replaced with errors.New (perfsprint)
|
helpers.go#L15
fmt.Errorf can be replaced with errors.New (perfsprint)
|
render.go#L263
if statements should only be cuddled with assignments (wsl)
|
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
render_test.go#L48
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
render_test.go#L65
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
render_test.go#L82
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
render_json_test.go#L26
unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive)
|
render_json_test.go#L31
unused-parameter: parameter 'on' seems to be unused, consider removing or renaming it as _ (revive)
|
render_json_test.go#L33
unused-parameter: parameter 'prefix' seems to be unused, consider removing or renaming it as _ (revive)
|
This job failed
Loading