Skip to content

Add linting, unit tests and acceptance test workflows #3

Add linting, unit tests and acceptance test workflows

Add linting, unit tests and acceptance test workflows #3

Triggered via pull request December 4, 2024 06:41
@pskrbasupskrbasu
synchronize #63
linitng
Status Failure
Total duration 3m 21s
Billable time 4m
Artifacts

10-test-lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Test Linting: cmd/connect.go#L51
use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
Test Linting: cmd/plugin.go#L307
use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
Test Linting: cmd/plugin.go#L364
use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
Test Linting: cmd/plugin.go#L721
use of `fmt.Printf` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
Test Linting: internal/collection_state/repository.go#L143
exitAfterDefer: log.Fatalf will exit, and `defer rows.Close()` will not run (gocritic)
Test Linting: internal/plugin_manager/plugin_manager.go#L131
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
Test Linting: cmd/collect.go#L142
SA4009: argument tablePattern is overwritten before first use (staticcheck)
Test Linting: internal/query/execute.go#L88
SA9003: empty branch (staticcheck)
Test Linting: internal/config/partition.go#L64
directive `// nolint: unused` should be written without leading space as `//nolint: unused` (nolintlint)
Test Linting: internal/database/tables.go#L81
directive `// nolint: gosec` should be written without leading space as `//nolint: gosec` (nolintlint)
Test Linting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636