Use golangci-lint instead of golint #1316
check-go-task.yml
on: pull_request
run-determination
0s
Matrix: check-config
Matrix: check-formatting
Matrix: check-outdated
Matrix: check-style
Annotations
30 errors and 12 warnings
check-style (docsgen):
internal/rule/schema/schema_test.go#L166
Error return value of `json.Unmarshal` is not checked (errcheck)
|
check-style (docsgen):
internal/rule/schema/schema_test.go#L189
Error return value of `json.Unmarshal` is not checked (errcheck)
|
check-style (docsgen):
internal/rule/schema/schema_test.go#L229
Error return value of `json.Unmarshal` is not checked (errcheck)
|
check-style (docsgen):
internal/rule/schema/schema_test.go#L296
Error return value is not checked (errcheck)
|
check-style (docsgen):
internal/project/packageindex/packageindex_test.go#L39
Error return value is not checked (errcheck)
|
check-style (docsgen):
internal/project/project_test.go#L46
Error return value of `libraryPath.RemoveAll` is not checked (errcheck)
|
check-style (docsgen):
internal/project/project_test.go#L61
Error return value of `configuration.Initialize` is not checked (errcheck)
|
check-style (docsgen):
internal/project/project_test.go#L63
Error return value is not checked (errcheck)
|
check-style (docsgen):
internal/project/project_test.go#L78
Error return value of `symlinkPath.RemoveAll` is not checked (errcheck)
|
check-style (docsgen):
internal/project/project_test.go#L85
Error return value of `flags.Set` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/rule/schema/schema_test.go#L166
Error return value of `json.Unmarshal` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/rule/schema/schema_test.go#L189
Error return value of `json.Unmarshal` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/rule/schema/schema_test.go#L229
Error return value of `json.Unmarshal` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/rule/schema/schema_test.go#L296
Error return value is not checked (errcheck)
|
check-style (ruledocsgen):
internal/configuration/configuration_test.go#L46
Error return value of `flags.Set` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/configuration/configuration_test.go#L49
Error return value of `flags.Set` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/configuration/configuration_test.go#L55
Error return value of `flags.Set` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/configuration/configuration_test.go#L110
Error return value of `os.Setenv` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/configuration/configuration_test.go#L114
Error return value of `os.Setenv` is not checked (errcheck)
|
check-style (ruledocsgen):
internal/configuration/configuration_test.go#L122
Error return value of `os.Setenv` is not checked (errcheck)
|
check-style (./):
internal/project/packageindex/packageindex_test.go#L39
Error return value is not checked (errcheck)
|
check-style (./):
internal/configuration/configuration_test.go#L46
Error return value of `flags.Set` is not checked (errcheck)
|
check-style (./):
internal/configuration/configuration_test.go#L49
Error return value of `flags.Set` is not checked (errcheck)
|
check-style (./):
internal/configuration/configuration_test.go#L55
Error return value of `flags.Set` is not checked (errcheck)
|
check-style (./):
internal/configuration/configuration_test.go#L110
Error return value of `os.Setenv` is not checked (errcheck)
|
check-style (./):
internal/configuration/configuration_test.go#L114
Error return value of `os.Setenv` is not checked (errcheck)
|
check-style (./):
internal/configuration/configuration_test.go#L122
Error return value of `os.Setenv` is not checked (errcheck)
|
check-style (./):
internal/project/project_test.go#L46
Error return value of `libraryPath.RemoveAll` is not checked (errcheck)
|
check-style (./):
internal/project/project_test.go#L61
Error return value of `configuration.Initialize` is not checked (errcheck)
|
check-style (./):
internal/project/project_test.go#L63
Error return value is not checked (errcheck)
|
check-style (docsgen)
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|
check-style (docsgen):
internal/project/projectdata/sketch.go#L25
unused-parameter: parameter 'project' seems to be unused, consider removing or renaming it as _ (revive)
|
check-style (docsgen):
internal/rule/ruleconfiguration/ruleconfiguration_test.go#L62
increment-decrement: should replace modeCounter += 1 with modeCounter++ (revive)
|
check-style (docsgen):
main.go#L17
package-comments: should have a package comment (revive)
|
check-style (ruledocsgen)
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|
check-style (ruledocsgen):
internal/project/projectdata/sketch.go#L25
unused-parameter: parameter 'project' seems to be unused, consider removing or renaming it as _ (revive)
|
check-style (ruledocsgen):
internal/rule/ruleconfiguration/ruleconfiguration_test.go#L62
increment-decrement: should replace modeCounter += 1 with modeCounter++ (revive)
|
check-style (ruledocsgen):
main.go#L17
package-comments: should have a package comment (revive)
|
check-style (./)
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|
check-style (./):
internal/project/projectdata/sketch.go#L25
unused-parameter: parameter 'project' seems to be unused, consider removing or renaming it as _ (revive)
|
check-style (./):
internal/rule/ruleconfiguration/ruleconfiguration_test.go#L62
increment-decrement: should replace modeCounter += 1 with modeCounter++ (revive)
|
check-style (./):
main.go#L17
package-comments: should have a package comment (revive)
|