4727 feat: [GOLIUM][MongoDB] Create_generic_code_working_MongoDB #311
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)
|