Skip to content

fix gh wf

fix gh wf #4

Triggered via push March 31, 2026 05:52
Status Failure
Total duration 33s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
lint: editor/diagnostics.go#L26
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: editor/completions.go#L106
emptyStringTest: replace `len(prefix) > 0` with `prefix != ""` (gocritic)
lint: sqlite/each.go#L199
string `integer` has 3 occurrences, make it a constant (goconst)
lint: editor/hover.go#L14
Function 'hover' has too many statements (61 > 50) (funlen)
lint: internal/planner/accumulator.go#L161
missing cases in switch of type gjson.Type: gjson.Null, gjson.JSON (exhaustive)
lint: internal/planner/accumulator.go#L50
missing cases in switch of type planner.AccKind: planner.AccCollect (exhaustive)
lint: editor/hover.go#L227
missing cases in switch of type lexer.TokenType: lexer.TokenEOF, lexer.TokenRegex, lexer.TokenDot, lexer.TokenLBracket, lexer.TokenRBracket, lexer.TokenLBrace, lexer.TokenRBrace, lexer.TokenLParen, lexer.TokenRParen, lexer.TokenComma, lexer.TokenAt, lexer.TokenHash, lexer.TokenSemicolon, lexer.TokenColon, lexer.TokenQuestion, lexer.TokenPlus, lexer.TokenMinus, lexer.TokenStar, lexer.TokenSlash, lexer.TokenPercent, lexer.TokenPipe, lexer.TokenEquals, lexer.TokenLT, lexer.TokenGT, lexer.TokenCaret, lexer.TokenAmp, lexer.TokenBang, lexer.TokenTilde (exhaustive)
lint: editor/hover.go#L200
missing cases in switch of type lexer.TokenType: lexer.TokenEOF, lexer.TokenDot, lexer.TokenLBracket, lexer.TokenLBrace, lexer.TokenLParen, lexer.TokenComma, lexer.TokenAt, lexer.TokenHash, lexer.TokenSemicolon, lexer.TokenColon, lexer.TokenQuestion, lexer.TokenPlus, lexer.TokenMinus, lexer.TokenSlash, lexer.TokenPipe, lexer.TokenEquals, lexer.TokenLT, lexer.TokenGT, lexer.TokenCaret, lexer.TokenAmp, lexer.TokenBang, lexer.TokenTilde, lexer.TokenDotDot, lexer.TokenAssign, lexer.TokenNE, lexer.TokenLE, lexer.TokenGE, lexer.TokenChain, lexer.TokenElvis, lexer.TokenCoalesce, lexer.TokenAnd, lexer.TokenOr, lexer.TokenIn (exhaustive)
lint: editor/hover.go#L31
missing cases in switch of type lexer.TokenType: lexer.TokenEOF, lexer.TokenString, lexer.TokenNumber, lexer.TokenRegex, lexer.TokenDot, lexer.TokenLBracket, lexer.TokenRBracket, lexer.TokenLBrace, lexer.TokenRBrace, lexer.TokenLParen, lexer.TokenRParen, lexer.TokenComma, lexer.TokenAt, lexer.TokenHash, lexer.TokenSemicolon, lexer.TokenColon, lexer.TokenPlus, lexer.TokenMinus, lexer.TokenStar, lexer.TokenSlash, lexer.TokenPercent, lexer.TokenPipe, lexer.TokenEquals, lexer.TokenLT, lexer.TokenGT, lexer.TokenCaret, lexer.TokenAmp, lexer.TokenBang, lexer.TokenTilde, lexer.TokenStarStar, lexer.TokenNE, lexer.TokenLE, lexer.TokenGE, lexer.TokenElvis, lexer.TokenCoalesce (exhaustive)
lint: editor/completions.go#L131
missing cases in switch of type lexer.TokenType: lexer.TokenEOF, lexer.TokenName, lexer.TokenVariable, lexer.TokenString, lexer.TokenNumber, lexer.TokenValue, lexer.TokenRegex, lexer.TokenDot, lexer.TokenRBracket, lexer.TokenLBrace, lexer.TokenRBrace, lexer.TokenRParen, lexer.TokenAt, lexer.TokenHash, lexer.TokenPipe, lexer.TokenCaret, lexer.TokenBang, lexer.TokenTilde, lexer.TokenStarStar, lexer.TokenDotDot, lexer.TokenElvis, lexer.TokenCoalesce (exhaustive)
test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
lint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/