Add WhereHas and WhereDoesntHave helpers for relationship filtering #257
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)
|