Skip to content

Add linters to v2 project and a new job in the workflow #1730

Add linters to v2 project and a new job in the workflow

Add linters to v2 project and a new job in the workflow #1730

Re-run triggered October 21, 2023 05:44
Status Failure
Total duration 23m 32s
Artifacts

pr.yml

on: pull_request
Matrix: Run Go Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Run Go Linters: v2/internal/app/app_devtools_not.go#L1
File is not `gofmt`-ed with `-s` (gofmt)
Run Go Linters: v2/internal/binding/generate.go#L85
S1039: unnecessary use of fmt.Sprintf (gosimple)
Run Go Linters: v2/internal/frontend/desktop/linux/calloc.go#L9
could not import C (cgo preprocessing failed) (typecheck)
Run Go Linters: v2/internal/frontend/desktop/linux/frontend.go#L92
could not import github.com/wailsapp/wails/v2/pkg/assetserver/webview (-: go build github.com/wailsapp/wails/v2/pkg/assetserver/webview:
Run Go Linters: v2/internal/frontend/runtime/events.go#L146
S1002: should omit comparison to bool constant, can be simplified to `itemsToDelete` (gosimple)
Run Go Linters: v2/internal/fs/fs.go#L114
`unnecassary` is a misspelling of `unnecessary` (misspell)
Run Go Linters: v2/internal/go-common-file-dialog/cfd/CommonFileDialog_nonWindows.go#L8
the variable name `unsupportedError` should conform to the `errXxx` format (errname)
Run Go Linters: v2/internal/go-common-file-dialog/cfd/errors.go#L6
the variable name `ErrorCancelled` should conform to the `ErrXxx` format (errname)
Run Go Linters: v2/internal/go-common-file-dialog/cfdutil/CFDUtil.go#L13
Error return value of `dialog.Release` is not checked (errcheck)
Run Go Linters: v2/internal/go-common-file-dialog/cfdutil/CFDUtil.go#L23
Error return value of `dialog.Release` is not checked (errcheck)
Run Go Linters
Restore cache failed: Dependencies file is not found in /home/runner/work/wails/wails. Supported file pattern: go.sum