fix: add question operations in questionnaire handling #1775
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (10)
controller/questionnaire.go|173 col 93| question.Body undefined (type openapi.NewQuestion has no field or method Body)
controller/questionnaire.go|393 col 30| invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
controller/questionnaire.go|394 col 94| question.Body undefined (type openapi.Question has no field or method Body)
controller/questionnaire.go|400 col 91| question.Body undefined (type openapi.Question has no field or method Body)
controller/questionnaire.go|400 col 119| invalid operation: cannot indirect question.QuestionId (variable of type int) (typecheck)
controller/questionnaire.go|173 col 93| question.Body undefined (type openapi.NewQuestion has no field or method Body)
controller/questionnaire.go|393 col 30| invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
controller/questionnaire.go|394 col 94| question.Body undefined (type openapi.Question has no field or method Body)
controller/questionnaire.go|400 col 91| question.Body undefined (type openapi.Question has no field or method Body)
controller/questionnaire.go|400 col 119| invalid operation: cannot indirect question.QuestionId (variable of type int)) (typecheck)
Filtered Findings (0)
Annotations
Check failure on line 173 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L173
question.Body undefined (type openapi.NewQuestion has no field or method Body)
Raw output
controller/questionnaire.go:173:93: question.Body undefined (type openapi.NewQuestion has no field or method Body)
Check failure on line 393 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L393
invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
Raw output
controller/questionnaire.go:393:30: invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
Check failure on line 394 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L394
question.Body undefined (type openapi.Question has no field or method Body)
Raw output
controller/questionnaire.go:394:94: question.Body undefined (type openapi.Question has no field or method Body)
Check failure on line 400 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L400
question.Body undefined (type openapi.Question has no field or method Body)
Raw output
controller/questionnaire.go:400:91: question.Body undefined (type openapi.Question has no field or method Body)
Check failure on line 400 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L400
invalid operation: cannot indirect question.QuestionId (variable of type int) (typecheck)
Raw output
controller/questionnaire.go:400:119: invalid operation: cannot indirect question.QuestionId (variable of type int) (typecheck)
package controller
Check failure on line 173 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L173
question.Body undefined (type openapi.NewQuestion has no field or method Body)
Raw output
controller/questionnaire.go:173:93: question.Body undefined (type openapi.NewQuestion has no field or method Body)
Check failure on line 393 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L393
invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
Raw output
controller/questionnaire.go:393:30: invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
Check failure on line 394 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L394
question.Body undefined (type openapi.Question has no field or method Body)
Raw output
controller/questionnaire.go:394:94: question.Body undefined (type openapi.Question has no field or method Body)
Check failure on line 400 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L400
question.Body undefined (type openapi.Question has no field or method Body)
Raw output
controller/questionnaire.go:400:91: question.Body undefined (type openapi.Question has no field or method Body)
Check failure on line 400 in controller/questionnaire.go
github-actions / golangci
[golangci] controller/questionnaire.go#L400
invalid operation: cannot indirect question.QuestionId (variable of type int)) (typecheck)
Raw output
controller/questionnaire.go:400:119: invalid operation: cannot indirect question.QuestionId (variable of type int)) (typecheck)
"github.com/traPtitech/anke-to/controller"
^