AnaTofuZ / BookmarkTarou

0 stars 0 forks source link

Sqlboilerを使う #14

Closed AnaTofuZ closed 4 years ago

github-actions[bot] commented 4 years ago

⚠ gosec Failed

Summary:
   Files: 13
   Lines: 6336
   Nosec: 0
  Issues: 99
Show Detail ``` Results: [/github/workspace/infra/record/entry.go:828-830] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `entry` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, entryPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/user.go:1053-1054] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `user` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, userPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/user.go:896-900] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `user` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/user.go:798-800] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `user` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, userPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/bookmark.go:751-755] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"user_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:798-802] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"entry_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:847-851] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"bookmark_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:956] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `bookmark` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/bookmark.go:964] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `bookmark` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns)) [/github/workspace/infra/record/bookmark.go:1051-1054] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:1132-1134] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/user.go:717-720] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `user` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, userPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark_tag_relation.go:649-653] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"tag_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/user.go:624] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `user` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, userPrimaryKeyColumns)) [/github/workspace/infra/record/user.go:616] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `user` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/user.go:497-501] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"user_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/tag.go:1069-1070] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `tag`.* FROM `tag` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, tagPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/tag.go:1014-1015] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `tag` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, tagPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/tag.go:857-861] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `tag` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/tag.go:767-769] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `tag` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, tagPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/bookmark.go:1221-1225] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `bookmark` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/bookmark.go:1378-1379] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `bookmark` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/bookmark.go:1433-1434] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `bookmark`.* FROM `bookmark` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/bookmark_tag_relation.go:602-606] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"bookmark_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/tag.go:686-689] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `tag` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, tagPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark_tag_relation.go:754] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `bookmark_tag_relation` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/bookmark_tag_relation.go:762] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `bookmark_tag_relation` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns)) [/github/workspace/infra/record/bookmark_tag_relation.go:849-852] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark_tag_relation.go:930-932] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkTagRelationPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/tag.go:599] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `tag` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, tagPrimaryKeyColumns)) [/github/workspace/infra/record/tag.go:591] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `tag` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/tag.go:482-486] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"tag_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/mysql_upsert.go:38-44] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Fprintf( buf, "INSERT INTO %s (%s) VALUES (%s) ON DUPLICATE KEY UPDATE ", tableName, columns, strmangle.Placeholders(dia.UseIndexPlaceholders, len(whitelist), 1, 1), ) [/github/workspace/infra/record/mysql_upsert.go:28-34] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Fprintf( buf, "INSERT IGNORE INTO %s (%s) VALUES (%s)", tableName, columns, strmangle.Placeholders(dia.UseIndexPlaceholders, len(whitelist), 1, 1), ) [/github/workspace/infra/record/entry.go:1138-1139] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `entry`.* FROM `entry` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, entryPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/entry.go:1083-1084] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `entry` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, entryPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/entry.go:926-930] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `entry` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/user.go:1108-1109] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `user`.* FROM `user` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, userPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/bookmark_tag_relation.go:1019-1023] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `bookmark_tag_relation` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/bookmark_tag_relation.go:1176-1177] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `bookmark_tag_relation` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkTagRelationPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/bookmark_tag_relation.go:1231-1232] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `bookmark_tag_relation`.* FROM `bookmark_tag_relation` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkTagRelationPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/entry.go:527-531] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"entry_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/entry.go:646] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `entry` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/entry.go:654] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `entry` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, entryPrimaryKeyColumns)) [/github/workspace/infra/record/entry.go:747-750] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `entry` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, entryPrimaryKeyColumns), ) [/github/workspace/infra/record/entry.go:887] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/entry.go:882] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/entry.go:884] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:886] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:990] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:889] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:891] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/entry.go:893] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:895] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/entry.go:897] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:988] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:986] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:984] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:982] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:980] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/mysql_upsert.go:48] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte(',') [/github/workspace/infra/record/mysql_upsert.go:51] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(quoted) [/github/workspace/infra/record/mysql_upsert.go:52] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(" = VALUES(") [/github/workspace/infra/record/mysql_upsert.go:53] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(quoted) [/github/workspace/infra/record/mysql_upsert.go:54] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte(')') [/github/workspace/infra/record/bookmark_tag_relation.go:979] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:977] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:975] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/boil_types.go:37] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(cols.Kind)) [/github/workspace/infra/record/bookmark.go:1192] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:813] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/tag.go:815] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:817] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/tag.go:818] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/tag.go:820] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:822] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/tag.go:824] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:826] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/tag.go:828] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark.go:1190] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark.go:1188] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark.go:1186] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark.go:1184] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark.go:1182] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/bookmark.go:1181] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark.go:1177] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/boil_types.go:46] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(nz) [/github/workspace/infra/record/user.go:852] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/user.go:854] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/user.go:856] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/user.go:857] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/user.go:859] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/user.go:861] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/user.go:863] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/user.go:865] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/user.go:867] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/boil_types.go:43] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/boil_types.go:39] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(w) [/github/workspace/infra/record/bookmark.go:1179] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) Summary: Files: 13 Lines: 6336 Nosec: 0 Issues: 99 ``` [Code Reference](https://github.com/securego/gosec#available-rules)
github-actions[bot] commented 4 years ago

⚠ errcheck Failed

infra/record/bookmark.go:760:15:    fmt.Fprintln(writer, updateQuery)
infra/record/bookmark.go:761:15:    fmt.Fprintln(writer, values)
infra/record/bookmark.go:807:15:    fmt.Fprintln(writer, updateQuery)
infra/record/bookmark.go:808:15:    fmt.Fprintln(writer, values)
infra/record/bookmark.go:856:17:    fmt.Fprintln(writer, updateQuery)
infra/record/bookmark.go:857:17:    fmt.Fprintln(writer, values)
infra/record/bookmark.go:975:15:    fmt.Fprintln(writer, cache.query)
infra/record/bookmark.go:976:15:    fmt.Fprintln(writer, vals)
infra/record/bookmark.go:1007:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark.go:1008:15:   fmt.Fprintln(writer, identifierCols...)
infra/record/bookmark.go:1065:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark.go:1066:15:   fmt.Fprintln(writer, values)
infra/record/bookmark.go:1138:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1139:15:   fmt.Fprintln(writer, args...)
infra/record/bookmark.go:1248:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark.go:1249:15:   fmt.Fprintln(writer, vals)
infra/record/bookmark.go:1283:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark.go:1284:15:   fmt.Fprintln(writer, nzUniqueCols...)
infra/record/bookmark.go:1317:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1318:15:   fmt.Fprintln(writer, args...)
infra/record/bookmark.go:1383:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1384:15:   fmt.Fprintln(writer, args)
infra/record/bookmark.go:1455:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1456:15:   fmt.Fprintln(writer, iD)
infra/record/bookmark_tag_relation.go:611:15:   fmt.Fprintln(writer, updateQuery)
infra/record/bookmark_tag_relation.go:612:15:   fmt.Fprintln(writer, values)
infra/record/bookmark_tag_relation.go:658:15:   fmt.Fprintln(writer, updateQuery)
infra/record/bookmark_tag_relation.go:659:15:   fmt.Fprintln(writer, values)
infra/record/bookmark_tag_relation.go:773:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark_tag_relation.go:774:15:   fmt.Fprintln(writer, vals)
infra/record/bookmark_tag_relation.go:805:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark_tag_relation.go:806:15:   fmt.Fprintln(writer, identifierCols...)
infra/record/bookmark_tag_relation.go:863:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark_tag_relation.go:864:15:   fmt.Fprintln(writer, values)
infra/record/bookmark_tag_relation.go:936:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:937:15:   fmt.Fprintln(writer, args...)
infra/record/bookmark_tag_relation.go:1046:15:  fmt.Fprintln(writer, cache.query)
infra/record/bookmark_tag_relation.go:1047:15:  fmt.Fprintln(writer, vals)
infra/record/bookmark_tag_relation.go:1081:15:  fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark_tag_relation.go:1082:15:  fmt.Fprintln(writer, nzUniqueCols...)
infra/record/bookmark_tag_relation.go:1115:15:  fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:1116:15:  fmt.Fprintln(writer, args...)
infra/record/bookmark_tag_relation.go:1181:15:  fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:1182:15:  fmt.Fprintln(writer, args)
infra/record/bookmark_tag_relation.go:1253:15:  fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:1254:15:  fmt.Fprintln(writer, iD)
infra/record/entry.go:536:17:   fmt.Fprintln(writer, updateQuery)
infra/record/entry.go:537:17:   fmt.Fprintln(writer, values)
infra/record/entry.go:665:15:   fmt.Fprintln(writer, cache.query)
infra/record/entry.go:666:15:   fmt.Fprintln(writer, vals)
infra/record/entry.go:697:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/entry.go:698:15:   fmt.Fprintln(writer, identifierCols...)
infra/record/entry.go:761:15:   fmt.Fprintln(writer, cache.query)
infra/record/entry.go:762:15:   fmt.Fprintln(writer, values)
infra/record/entry.go:834:15:   fmt.Fprintln(writer, sql)
infra/record/entry.go:835:15:   fmt.Fprintln(writer, args...)
infra/record/entry.go:953:15:   fmt.Fprintln(writer, cache.query)
infra/record/entry.go:954:15:   fmt.Fprintln(writer, vals)
infra/record/entry.go:988:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/entry.go:989:15:   fmt.Fprintln(writer, nzUniqueCols...)
infra/record/entry.go:1022:15:  fmt.Fprintln(writer, sql)
infra/record/entry.go:1023:15:  fmt.Fprintln(writer, args...)
infra/record/entry.go:1088:15:  fmt.Fprintln(writer, sql)
infra/record/entry.go:1089:15:  fmt.Fprintln(writer, args)
infra/record/entry.go:1160:15:  fmt.Fprintln(writer, sql)
infra/record/entry.go:1161:15:  fmt.Fprintln(writer, iD)
infra/record/mysql_main_test.go:158:14: fmt.Fprintln(tmp, "[client]")
infra/record/mysql_main_test.go:159:13: fmt.Fprintf(tmp, "host=%s\n", m.host)
infra/record/mysql_main_test.go:160:13: fmt.Fprintf(tmp, "port=%d\n", m.port)
infra/record/mysql_main_test.go:161:13: fmt.Fprintf(tmp, "user=%s\n", m.user)
infra/record/mysql_main_test.go:163:14: fmt.Fprintf(tmp, "password=%s\n", m.pass)
infra/record/mysql_main_test.go:165:13: fmt.Fprintf(tmp, "ssl-mode=%s\n", m.sslMode(m.sslmode))
infra/record/mysql_main_test.go:167:15: fmt.Fprintln(tmp, "protocol=tcp")
infra/record/mysql_main_test.go:170:14: fmt.Fprintln(tmp, "[mysqldump]")
infra/record/mysql_main_test.go:171:13: fmt.Fprintf(tmp, "host=%s\n", m.host)
infra/record/mysql_main_test.go:172:13: fmt.Fprintf(tmp, "port=%d\n", m.port)
infra/record/mysql_main_test.go:173:13: fmt.Fprintf(tmp, "user=%s\n", m.user)
infra/record/mysql_main_test.go:175:14: fmt.Fprintf(tmp, "password=%s\n", m.pass)
infra/record/mysql_main_test.go:177:13: fmt.Fprintf(tmp, "ssl-mode=%s\n", m.sslMode(m.sslmode))
infra/record/mysql_main_test.go:179:15: fmt.Fprintln(tmp, "protocol=tcp")
infra/record/tag.go:491:17: fmt.Fprintln(writer, updateQuery)
infra/record/tag.go:492:17: fmt.Fprintln(writer, values)
infra/record/tag.go:610:15: fmt.Fprintln(writer, cache.query)
infra/record/tag.go:611:15: fmt.Fprintln(writer, vals)
infra/record/tag.go:642:15: fmt.Fprintln(writer, cache.retQuery)
infra/record/tag.go:643:15: fmt.Fprintln(writer, identifierCols...)
infra/record/tag.go:700:15: fmt.Fprintln(writer, cache.query)
infra/record/tag.go:701:15: fmt.Fprintln(writer, values)
infra/record/tag.go:773:15: fmt.Fprintln(writer, sql)
infra/record/tag.go:774:15: fmt.Fprintln(writer, args...)
infra/record/tag.go:884:15: fmt.Fprintln(writer, cache.query)
infra/record/tag.go:885:15: fmt.Fprintln(writer, vals)
infra/record/tag.go:919:15: fmt.Fprintln(writer, cache.retQuery)
infra/record/tag.go:920:15: fmt.Fprintln(writer, nzUniqueCols...)
infra/record/tag.go:953:15: fmt.Fprintln(writer, sql)
infra/record/tag.go:954:15: fmt.Fprintln(writer, args...)
infra/record/tag.go:1019:15:    fmt.Fprintln(writer, sql)
infra/record/tag.go:1020:15:    fmt.Fprintln(writer, args)
infra/record/tag.go:1091:15:    fmt.Fprintln(writer, sql)
infra/record/tag.go:1092:15:    fmt.Fprintln(writer, iD)
infra/record/user.go:506:17:    fmt.Fprintln(writer, updateQuery)
infra/record/user.go:507:17:    fmt.Fprintln(writer, values)
infra/record/user.go:635:15:    fmt.Fprintln(writer, cache.query)
infra/record/user.go:636:15:    fmt.Fprintln(writer, vals)
infra/record/user.go:667:15:    fmt.Fprintln(writer, cache.retQuery)
infra/record/user.go:668:15:    fmt.Fprintln(writer, identifierCols...)
infra/record/user.go:731:15:    fmt.Fprintln(writer, cache.query)
infra/record/user.go:732:15:    fmt.Fprintln(writer, values)
infra/record/user.go:804:15:    fmt.Fprintln(writer, sql)
infra/record/user.go:805:15:    fmt.Fprintln(writer, args...)
infra/record/user.go:923:15:    fmt.Fprintln(writer, cache.query)
infra/record/user.go:924:15:    fmt.Fprintln(writer, vals)
infra/record/user.go:958:15:    fmt.Fprintln(writer, cache.retQuery)
infra/record/user.go:959:15:    fmt.Fprintln(writer, nzUniqueCols...)
infra/record/user.go:992:15:    fmt.Fprintln(writer, sql)
infra/record/user.go:993:15:    fmt.Fprintln(writer, args...)
infra/record/user.go:1058:15:   fmt.Fprintln(writer, sql)
infra/record/user.go:1059:15:   fmt.Fprintln(writer, args)
infra/record/user.go:1130:15:   fmt.Fprintln(writer, sql)
infra/record/user.go:1131:15:   fmt.Fprintln(writer, iD)
AnaTofuZ commented 4 years ago

なんか違和感があるかと思っていたらテーブル名が単数形だった気がする

github-actions[bot] commented 4 years ago

⚠ gosec Failed

Summary:
   Files: 13
   Lines: 6336
   Nosec: 0
  Issues: 99
Show Detail ``` Results: [/github/workspace/infra/record/entry.go:828-830] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `entry` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, entryPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/user.go:1053-1054] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `user` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, userPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/user.go:896-900] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `user` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/user.go:798-800] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `user` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, userPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/bookmark.go:751-755] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"user_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:798-802] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"entry_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:847-851] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"bookmark_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:956] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `bookmark` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/bookmark.go:964] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `bookmark` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns)) [/github/workspace/infra/record/bookmark.go:1051-1054] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark.go:1132-1134] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/user.go:717-720] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `user` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, userPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark_tag_relation.go:649-653] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"tag_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/user.go:624] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `user` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, userPrimaryKeyColumns)) [/github/workspace/infra/record/user.go:616] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `user` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/user.go:497-501] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"user_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/tag.go:1069-1070] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `tag`.* FROM `tag` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, tagPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/tag.go:1014-1015] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `tag` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, tagPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/tag.go:857-861] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `tag` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/tag.go:767-769] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `tag` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, tagPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/bookmark.go:1221-1225] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `bookmark` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/bookmark.go:1378-1379] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `bookmark` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/bookmark.go:1433-1434] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `bookmark`.* FROM `bookmark` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/bookmark_tag_relation.go:602-606] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"bookmark_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/tag.go:686-689] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `tag` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, tagPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark_tag_relation.go:754] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `bookmark_tag_relation` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/bookmark_tag_relation.go:762] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `bookmark_tag_relation` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns)) [/github/workspace/infra/record/bookmark_tag_relation.go:849-852] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/bookmark_tag_relation.go:930-932] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, colNames), strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkTagRelationPrimaryKeyColumns, len(o))) [/github/workspace/infra/record/tag.go:599] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `tag` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, tagPrimaryKeyColumns)) [/github/workspace/infra/record/tag.go:591] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `tag` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/tag.go:482-486] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark_tag_relation` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"tag_id"}), strmangle.WhereClause("`", "`", 0, bookmarkTagRelationPrimaryKeyColumns), ) [/github/workspace/infra/record/mysql_upsert.go:38-44] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Fprintf( buf, "INSERT INTO %s (%s) VALUES (%s) ON DUPLICATE KEY UPDATE ", tableName, columns, strmangle.Placeholders(dia.UseIndexPlaceholders, len(whitelist), 1, 1), ) [/github/workspace/infra/record/mysql_upsert.go:28-34] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Fprintf( buf, "INSERT IGNORE INTO %s (%s) VALUES (%s)", tableName, columns, strmangle.Placeholders(dia.UseIndexPlaceholders, len(whitelist), 1, 1), ) [/github/workspace/infra/record/entry.go:1138-1139] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `entry`.* FROM `entry` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, entryPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/entry.go:1083-1084] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `entry` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, entryPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/entry.go:926-930] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `entry` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/user.go:1108-1109] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `user`.* FROM `user` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, userPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/bookmark_tag_relation.go:1019-1023] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "SELECT %s FROM `bookmark_tag_relation` WHERE %s", strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, ret), ","), strmangle.WhereClause("`", "`", 0, nzUniques), ) [/github/workspace/infra/record/bookmark_tag_relation.go:1176-1177] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "DELETE FROM `bookmark_tag_relation` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkTagRelationPrimaryKeyColumns, len(o)) [/github/workspace/infra/record/bookmark_tag_relation.go:1231-1232] - G202 (CWE-89): SQL string concatenation (Confidence: HIGH, Severity: MEDIUM) > "SELECT `bookmark_tag_relation`.* FROM `bookmark_tag_relation` WHERE " + strmangle.WhereClauseRepeated(string(dialect.LQ), string(dialect.RQ), 0, bookmarkTagRelationPrimaryKeyColumns, len(*o)) [/github/workspace/infra/record/entry.go:527-531] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf( "UPDATE `bookmark` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, []string{"entry_id"}), strmangle.WhereClause("`", "`", 0, bookmarkPrimaryKeyColumns), ) [/github/workspace/infra/record/entry.go:646] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("INSERT INTO `entry` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1)) [/github/workspace/infra/record/entry.go:654] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("SELECT `%s` FROM `entry` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, entryPrimaryKeyColumns)) [/github/workspace/infra/record/entry.go:747-750] - G201 (CWE-89): SQL string formatting (Confidence: HIGH, Severity: MEDIUM) > fmt.Sprintf("UPDATE `entry` SET %s WHERE %s", strmangle.SetParamNames("`", "`", 0, wl), strmangle.WhereClause("`", "`", 0, entryPrimaryKeyColumns), ) [/github/workspace/infra/record/entry.go:887] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/entry.go:882] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/entry.go:884] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:886] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:990] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:889] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:891] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/entry.go:893] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/entry.go:895] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/entry.go:897] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:988] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:986] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:984] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:982] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:980] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/mysql_upsert.go:48] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte(',') [/github/workspace/infra/record/mysql_upsert.go:51] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(quoted) [/github/workspace/infra/record/mysql_upsert.go:52] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(" = VALUES(") [/github/workspace/infra/record/mysql_upsert.go:53] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(quoted) [/github/workspace/infra/record/mysql_upsert.go:54] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte(')') [/github/workspace/infra/record/bookmark_tag_relation.go:979] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark_tag_relation.go:977] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark_tag_relation.go:975] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/boil_types.go:37] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(cols.Kind)) [/github/workspace/infra/record/bookmark.go:1192] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:813] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/tag.go:815] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:817] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/tag.go:818] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/tag.go:820] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:822] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/tag.go:824] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/tag.go:826] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/tag.go:828] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark.go:1190] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark.go:1188] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark.go:1186] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark.go:1184] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/bookmark.go:1182] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/bookmark.go:1181] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/bookmark.go:1177] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/boil_types.go:46] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(nz) [/github/workspace/infra/record/user.go:852] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(updateColumns.Kind)) [/github/workspace/infra/record/user.go:854] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/user.go:856] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/user.go:857] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(strconv.Itoa(insertColumns.Kind)) [/github/workspace/infra/record/user.go:859] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/user.go:861] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/user.go:863] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/user.go:865] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/user.go:867] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) [/github/workspace/infra/record/boil_types.go:43] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteByte('.') [/github/workspace/infra/record/boil_types.go:39] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(w) [/github/workspace/infra/record/bookmark.go:1179] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW) > buf.WriteString(c) Summary: Files: 13 Lines: 6336 Nosec: 0 Issues: 99 ``` [Code Reference](https://github.com/securego/gosec#available-rules)
github-actions[bot] commented 4 years ago

⚠ errcheck Failed

infra/record/bookmark.go:760:15:    fmt.Fprintln(writer, updateQuery)
infra/record/bookmark.go:761:15:    fmt.Fprintln(writer, values)
infra/record/bookmark.go:807:15:    fmt.Fprintln(writer, updateQuery)
infra/record/bookmark.go:808:15:    fmt.Fprintln(writer, values)
infra/record/bookmark.go:856:17:    fmt.Fprintln(writer, updateQuery)
infra/record/bookmark.go:857:17:    fmt.Fprintln(writer, values)
infra/record/bookmark.go:975:15:    fmt.Fprintln(writer, cache.query)
infra/record/bookmark.go:976:15:    fmt.Fprintln(writer, vals)
infra/record/bookmark.go:1007:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark.go:1008:15:   fmt.Fprintln(writer, identifierCols...)
infra/record/bookmark.go:1065:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark.go:1066:15:   fmt.Fprintln(writer, values)
infra/record/bookmark.go:1138:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1139:15:   fmt.Fprintln(writer, args...)
infra/record/bookmark.go:1248:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark.go:1249:15:   fmt.Fprintln(writer, vals)
infra/record/bookmark.go:1283:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark.go:1284:15:   fmt.Fprintln(writer, nzUniqueCols...)
infra/record/bookmark.go:1317:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1318:15:   fmt.Fprintln(writer, args...)
infra/record/bookmark.go:1383:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1384:15:   fmt.Fprintln(writer, args)
infra/record/bookmark.go:1455:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark.go:1456:15:   fmt.Fprintln(writer, iD)
infra/record/bookmark_tag_relation.go:611:15:   fmt.Fprintln(writer, updateQuery)
infra/record/bookmark_tag_relation.go:612:15:   fmt.Fprintln(writer, values)
infra/record/bookmark_tag_relation.go:658:15:   fmt.Fprintln(writer, updateQuery)
infra/record/bookmark_tag_relation.go:659:15:   fmt.Fprintln(writer, values)
infra/record/bookmark_tag_relation.go:773:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark_tag_relation.go:774:15:   fmt.Fprintln(writer, vals)
infra/record/bookmark_tag_relation.go:805:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark_tag_relation.go:806:15:   fmt.Fprintln(writer, identifierCols...)
infra/record/bookmark_tag_relation.go:863:15:   fmt.Fprintln(writer, cache.query)
infra/record/bookmark_tag_relation.go:864:15:   fmt.Fprintln(writer, values)
infra/record/bookmark_tag_relation.go:936:15:   fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:937:15:   fmt.Fprintln(writer, args...)
infra/record/bookmark_tag_relation.go:1046:15:  fmt.Fprintln(writer, cache.query)
infra/record/bookmark_tag_relation.go:1047:15:  fmt.Fprintln(writer, vals)
infra/record/bookmark_tag_relation.go:1081:15:  fmt.Fprintln(writer, cache.retQuery)
infra/record/bookmark_tag_relation.go:1082:15:  fmt.Fprintln(writer, nzUniqueCols...)
infra/record/bookmark_tag_relation.go:1115:15:  fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:1116:15:  fmt.Fprintln(writer, args...)
infra/record/bookmark_tag_relation.go:1181:15:  fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:1182:15:  fmt.Fprintln(writer, args)
infra/record/bookmark_tag_relation.go:1253:15:  fmt.Fprintln(writer, sql)
infra/record/bookmark_tag_relation.go:1254:15:  fmt.Fprintln(writer, iD)
infra/record/entry.go:536:17:   fmt.Fprintln(writer, updateQuery)
infra/record/entry.go:537:17:   fmt.Fprintln(writer, values)
infra/record/entry.go:665:15:   fmt.Fprintln(writer, cache.query)
infra/record/entry.go:666:15:   fmt.Fprintln(writer, vals)
infra/record/entry.go:697:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/entry.go:698:15:   fmt.Fprintln(writer, identifierCols...)
infra/record/entry.go:761:15:   fmt.Fprintln(writer, cache.query)
infra/record/entry.go:762:15:   fmt.Fprintln(writer, values)
infra/record/entry.go:834:15:   fmt.Fprintln(writer, sql)
infra/record/entry.go:835:15:   fmt.Fprintln(writer, args...)
infra/record/entry.go:953:15:   fmt.Fprintln(writer, cache.query)
infra/record/entry.go:954:15:   fmt.Fprintln(writer, vals)
infra/record/entry.go:988:15:   fmt.Fprintln(writer, cache.retQuery)
infra/record/entry.go:989:15:   fmt.Fprintln(writer, nzUniqueCols...)
infra/record/entry.go:1022:15:  fmt.Fprintln(writer, sql)
infra/record/entry.go:1023:15:  fmt.Fprintln(writer, args...)
infra/record/entry.go:1088:15:  fmt.Fprintln(writer, sql)
infra/record/entry.go:1089:15:  fmt.Fprintln(writer, args)
infra/record/entry.go:1160:15:  fmt.Fprintln(writer, sql)
infra/record/entry.go:1161:15:  fmt.Fprintln(writer, iD)
infra/record/mysql_main_test.go:158:14: fmt.Fprintln(tmp, "[client]")
infra/record/mysql_main_test.go:159:13: fmt.Fprintf(tmp, "host=%s\n", m.host)
infra/record/mysql_main_test.go:160:13: fmt.Fprintf(tmp, "port=%d\n", m.port)
infra/record/mysql_main_test.go:161:13: fmt.Fprintf(tmp, "user=%s\n", m.user)
infra/record/mysql_main_test.go:163:14: fmt.Fprintf(tmp, "password=%s\n", m.pass)
infra/record/mysql_main_test.go:165:13: fmt.Fprintf(tmp, "ssl-mode=%s\n", m.sslMode(m.sslmode))
infra/record/mysql_main_test.go:167:15: fmt.Fprintln(tmp, "protocol=tcp")
infra/record/mysql_main_test.go:170:14: fmt.Fprintln(tmp, "[mysqldump]")
infra/record/mysql_main_test.go:171:13: fmt.Fprintf(tmp, "host=%s\n", m.host)
infra/record/mysql_main_test.go:172:13: fmt.Fprintf(tmp, "port=%d\n", m.port)
infra/record/mysql_main_test.go:173:13: fmt.Fprintf(tmp, "user=%s\n", m.user)
infra/record/mysql_main_test.go:175:14: fmt.Fprintf(tmp, "password=%s\n", m.pass)
infra/record/mysql_main_test.go:177:13: fmt.Fprintf(tmp, "ssl-mode=%s\n", m.sslMode(m.sslmode))
infra/record/mysql_main_test.go:179:15: fmt.Fprintln(tmp, "protocol=tcp")
infra/record/tag.go:491:17: fmt.Fprintln(writer, updateQuery)
infra/record/tag.go:492:17: fmt.Fprintln(writer, values)
infra/record/tag.go:610:15: fmt.Fprintln(writer, cache.query)
infra/record/tag.go:611:15: fmt.Fprintln(writer, vals)
infra/record/tag.go:642:15: fmt.Fprintln(writer, cache.retQuery)
infra/record/tag.go:643:15: fmt.Fprintln(writer, identifierCols...)
infra/record/tag.go:700:15: fmt.Fprintln(writer, cache.query)
infra/record/tag.go:701:15: fmt.Fprintln(writer, values)
infra/record/tag.go:773:15: fmt.Fprintln(writer, sql)
infra/record/tag.go:774:15: fmt.Fprintln(writer, args...)
infra/record/tag.go:884:15: fmt.Fprintln(writer, cache.query)
infra/record/tag.go:885:15: fmt.Fprintln(writer, vals)
infra/record/tag.go:919:15: fmt.Fprintln(writer, cache.retQuery)
infra/record/tag.go:920:15: fmt.Fprintln(writer, nzUniqueCols...)
infra/record/tag.go:953:15: fmt.Fprintln(writer, sql)
infra/record/tag.go:954:15: fmt.Fprintln(writer, args...)
infra/record/tag.go:1019:15:    fmt.Fprintln(writer, sql)
infra/record/tag.go:1020:15:    fmt.Fprintln(writer, args)
infra/record/tag.go:1091:15:    fmt.Fprintln(writer, sql)
infra/record/tag.go:1092:15:    fmt.Fprintln(writer, iD)
infra/record/user.go:506:17:    fmt.Fprintln(writer, updateQuery)
infra/record/user.go:507:17:    fmt.Fprintln(writer, values)
infra/record/user.go:635:15:    fmt.Fprintln(writer, cache.query)
infra/record/user.go:636:15:    fmt.Fprintln(writer, vals)
infra/record/user.go:667:15:    fmt.Fprintln(writer, cache.retQuery)
infra/record/user.go:668:15:    fmt.Fprintln(writer, identifierCols...)
infra/record/user.go:731:15:    fmt.Fprintln(writer, cache.query)
infra/record/user.go:732:15:    fmt.Fprintln(writer, values)
infra/record/user.go:804:15:    fmt.Fprintln(writer, sql)
infra/record/user.go:805:15:    fmt.Fprintln(writer, args...)
infra/record/user.go:923:15:    fmt.Fprintln(writer, cache.query)
infra/record/user.go:924:15:    fmt.Fprintln(writer, vals)
infra/record/user.go:958:15:    fmt.Fprintln(writer, cache.retQuery)
infra/record/user.go:959:15:    fmt.Fprintln(writer, nzUniqueCols...)
infra/record/user.go:992:15:    fmt.Fprintln(writer, sql)
infra/record/user.go:993:15:    fmt.Fprintln(writer, args...)
infra/record/user.go:1058:15:   fmt.Fprintln(writer, sql)
infra/record/user.go:1059:15:   fmt.Fprintln(writer, args)
infra/record/user.go:1130:15:   fmt.Fprintln(writer, sql)
infra/record/user.go:1131:15:   fmt.Fprintln(writer, iD)