Skip to content

4727 feat: [GOLIUM][MongoDB] Create_generic_code_working_MongoDB #311

4727 feat: [GOLIUM][MongoDB] Create_generic_code_working_MongoDB

4727 feat: [GOLIUM][MongoDB] Create_generic_code_working_MongoDB #311

Triggered via pull request October 23, 2023 13:06
Status Failure
Total duration 2m 14s
Artifacts

sonarcloud.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 6 warnings
lint: steps/mongo/session.go#L337
commentFormatting: put a space between `//` and comment text (gocritic)
lint: steps/mongo/session.go#L518
commentFormatting: put a space between `//` and comment text (gocritic)
lint: steps/mongo/session.go#L237
paramTypeCombine: func(expectedElement interface{}, sliceElements interface{}) bool could be replaced with func(expectedElement, sliceElements interface{}) bool (gocritic)
lint: steps/mongo/session.go#L475
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint: steps/mongo/session.go#L445
error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
lint: steps/mongo/session.go#L537
error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
lint: steps/mongo/session.go#L210
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: steps/mongo/session.go#L318
unused-parameter: parameter 'collectionName' seems to be unused, consider removing or renaming it as _ (revive)
lint: steps/mongo/session.go#L439
unused-parameter: parameter 'collectionName' seems to be unused, consider removing or renaming it as _ (revive)
lint: steps/mongo/session.go#L308
S1008: should use 'return !strings.Contains(strings.ToLower(exist), "not")' instead of 'if strings.Contains(strings.ToLower(exist), "not") { return false }; return true' (gosimple)
lint: steps/mongo/session.go#L475
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint: steps/mongo/session.go#L445
error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
lint: steps/mongo/session.go#L537
error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
lint: steps/mongo/session.go#L210
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: steps/mongo/session.go#L318
unused-parameter: parameter 'collectionName' seems to be unused, consider removing or renaming it as _ (revive)
lint: steps/mongo/session.go#L439
unused-parameter: parameter 'collectionName' seems to be unused, consider removing or renaming it as _ (revive)