Skip to content

add applicationPassword & some rest-api compatiable with wordpress rest-api #180

add applicationPassword & some rest-api compatiable with wordpress rest-api

add applicationPassword & some rest-api compatiable with wordpress rest-api #180

Triggered via pull request November 23, 2023 00:45
Status Failure
Total duration 1m 43s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

linter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: handler/middleware/application_password.go#L94
regexpMust: for const patterns like "^Basic [a-z\\d/+]*={0,2}", use regexp.MustCompile (gocritic)
lint: util/common.go#L4
File is not `gofumpt`-ed (gofumpt)
lint: service/application_password.go#L4
File is not `gofumpt`-ed (gofumpt)
lint: handler/content/wp/post.go#L4
File is not `gofumpt`-ed (gofumpt)
lint: util/common.go#L5
File is not `goimports`-ed with -local github.com/go-sonic/sonic (goimports)
lint: handler/content/wp/category.go#L4
File is not `goimports`-ed with -local github.com/go-sonic/sonic (goimports)
lint: handler/content/wp/post.go#L5
File is not `goimports`-ed with -local github.com/go-sonic/sonic (goimports)
lint: handler/middleware/application_password.go#L32
unnecessary leading newline (whitespace)
lint: handler/router.go#L376
unnecessary trailing newline (whitespace)
lint: handler/server.go#L273
S1023: redundant `return` statement (gosimple)
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/sonic/sonic. Supported file pattern: go.sum