mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: re-enable revive and gosec linters (#17225)
* Reenables revive linter for test files (with an exception for the `unused-parameter` rule) * Reenables gosec linter for test files
This commit is contained in:
@@ -118,7 +118,7 @@ func TestBatchCreateLogs(t *testing.T) {
|
||||
level = database.LogLevel(strings.ToLower(logEntry.Level.String()))
|
||||
}
|
||||
insertWorkspaceAgentLogsParams.Level[i] = level
|
||||
insertWorkspaceAgentLogsParams.OutputLength += int32(len(logEntry.Output))
|
||||
insertWorkspaceAgentLogsParams.OutputLength += int32(len(logEntry.Output)) // nolint:gosec
|
||||
|
||||
insertWorkspaceAgentLogsReturn[i] = database.WorkspaceAgentLog{
|
||||
AgentID: agent.ID,
|
||||
@@ -270,7 +270,7 @@ func TestBatchCreateLogs(t *testing.T) {
|
||||
CreatedAt: now,
|
||||
Output: []string{"hello world"},
|
||||
Level: []database.LogLevel{database.LogLevelInfo},
|
||||
OutputLength: int32(len(req.Logs[0].Output)),
|
||||
OutputLength: int32(len(req.Logs[0].Output)), // nolint:gosec
|
||||
}
|
||||
dbInsertRes := []database.WorkspaceAgentLog{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user