Skip to content

Add WhereHas and WhereDoesntHave helpers for relationship filtering #257

Add WhereHas and WhereDoesntHave helpers for relationship filtering

Add WhereHas and WhereDoesntHave helpers for relationship filtering #257

Triggered via pull request November 7, 2025 15:51
Status Failure
Total duration 31s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
lint
issues found
lint: callbacks/where_has.go#L106
existsBelongsTo - result 1 (error) is always nil (unparam)
lint: statement.go#L575
S1011: should replace loop with newStmt.WhereHasConditions = append(newStmt.WhereHasConditions, stmt.WhereHasConditions...) (staticcheck)
lint: callbacks/where_has.go#L34
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: callbacks/query.go#L64
Error return value of `db.AddError` is not checked (errcheck)
lint: callbacks/where_has.go#L17
calculated cyclomatic complexity for function newWhereHas is 12, max is 10 (cyclop)