Skip to content

Commit

Permalink
Merge pull request #1473 update gofumpt in CI for use samve version a…
Browse files Browse the repository at this point in the history
…s golangcilint
  • Loading branch information
rekby authored Sep 18, 2024
2 parents efa13b2 + 1b080f5 commit 1464758
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
go-version: "1.23.x"
- name: Install utilities
run: |
go install mvdan.cc/gofumpt@v0.3.1
go install mvdan.cc/gofumpt@v0.7.0
go install github.com/daixiang0/[email protected]
- name: format all files with auto-formatter
run: bash ./.github/scripts/format-all-go-code.sh "$PWD"
Expand Down
1 change: 0 additions & 1 deletion tests/integration/database_sql_get_column_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func TestDatabaseSqlGetColumnType(t *testing.T) {
})
return err
})

if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion tests/integration/database_sql_get_columns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func TestDatabaseSqlGetColumns(t *testing.T) {
columns, err = q.GetColumns(ctx, "episodes")
return err
})

if err != nil {
return err
}
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/database_sql_get_index_columns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func TestDatabaseSqlGetIndexColumns(t *testing.T) {
)
)`,
)

if err != nil {
return err
}
Expand Down Expand Up @@ -82,7 +81,6 @@ func TestDatabaseSqlGetIndexColumns(t *testing.T) {
columns, err = q.GetIndexColumns(ctx, "./seasons", test.IndexName)
return err
})

if err != nil {
return err
}
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/database_sql_get_indexes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func TestDatabaseSqlGetIndexes(t *testing.T) {
)
)`,
)

if err != nil {
return err
}
Expand All @@ -69,7 +68,6 @@ func TestDatabaseSqlGetIndexes(t *testing.T) {
indexes, err = q.GetIndexes(ctx, "./seasons")
return err
})

if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion tests/integration/database_sql_get_primary_keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func TestDatabaseSqlGetPrimaryKeys(t *testing.T) {
pkCols, err = q.GetPrimaryKeys(ctx, "episodes")
return err
})

if err != nil {
return err
}
Expand Down
12 changes: 0 additions & 12 deletions tests/integration/database_sql_get_tables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func TestDatabaseSqlGetTables(t *testing.T) {
)
)`,
)

if err != nil {
return err
}
Expand All @@ -74,7 +73,6 @@ func TestDatabaseSqlGetTables(t *testing.T) {
)
);`,
)

if err != nil {
return err
}
Expand All @@ -93,7 +91,6 @@ func TestDatabaseSqlGetTables(t *testing.T) {
)
)`,
)

if err != nil {
return err
}
Expand All @@ -119,7 +116,6 @@ func TestDatabaseSqlGetTables(t *testing.T) {
tables, err = q.GetTables(ctx, ".", false, true)
return err
})

if err != nil {
return err
}
Expand Down Expand Up @@ -148,7 +144,6 @@ func TestDatabaseSqlGetTables(t *testing.T) {
tables, err = q.GetTables(ctx, "./subdir", false, true)
return err
})

if err != nil {
return err
}
Expand Down Expand Up @@ -177,7 +172,6 @@ func TestDatabaseSqlGetTables(t *testing.T) {
tables, err = q.GetTables(ctx, "./subdir/seasons", false, true)
return err
})

if err != nil {
return err
}
Expand Down Expand Up @@ -229,7 +223,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) {
)
)`,
)

if err != nil {
return err
}
Expand All @@ -248,7 +241,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) {
)
);`,
)

if err != nil {
return err
}
Expand All @@ -267,7 +259,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) {
)
)`,
)

if err != nil {
return err
}
Expand All @@ -293,7 +284,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) {
tables, err = q.GetTables(ctx, ".", true, true)
return err
})

if err != nil {
return err
}
Expand Down Expand Up @@ -324,7 +314,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) {
tables, err = q.GetTables(ctx, "./subdir", true, true)
return err
})

if err != nil {
return err
}
Expand Down Expand Up @@ -355,7 +344,6 @@ func TestDatabaseSqlGetTablesRecursive(t *testing.T) {
tables, err = q.GetTables(ctx, "./subdir/seasons", true, true)
return err
})

if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion tests/integration/database_sql_is_column_exists_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func TestDatabaseSqlIsColumnExists(t *testing.T) {
exists, err = q.IsColumnExists(ctx, "series", column)
return err
})

if err != nil {
return err
}
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/database_sql_is_primary_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func TestDatabaseSqlIsPrimaryKey(t *testing.T) {
isPk, err = q.IsPrimaryKey(ctx, "episodes", pk)
return err
})

if err != nil {
return err
}
Expand Down Expand Up @@ -95,7 +94,6 @@ func TestDatabaseSqlIsPrimaryKey(t *testing.T) {
isPk, err = q.IsPrimaryKey(ctx, "episodes", pk)
return err
})

if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion tests/integration/database_sql_is_table_exists_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func TestDatabaseSqlIsTableExists(t *testing.T) {
exists, err = q.IsTableExists(ctx, "series")
return err
})

if err != nil {
return err
}
Expand Down

0 comments on commit 1464758

Please sign in to comment.