on main help sign in
fix: resolve golangci-lint issues

- Fix gofumpt formatting in models.go - Replace deprecated database methods with context-aware versions: - db.Ping() -> db.PingContext() - db.Exec() -> db.ExecContext() - db.Begin() -> db.BeginTx() - Update Taskfile.yaml to match CI lint configuration

commit9eab1ba11efd7caade2e0c1c66a4c4b67d32026e authorKujtim Hoxha <kujtimii.h@gmail.com> dateMon 30 Jun 2025, 14:13 (1 year ago) parent2a10ac9
2 files changed+4−4
Taskfile.yaml+2−2 internal/tui/components/dialogs/models/models.go+2−2
Taskfile.yaml+2−2
@@ -6,12 +6,12 @@ tasks:
66 lint:
77 desc: Run base linters
88 cmds:
9− - golangci-lint run
9+ - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
1010
1111 lint-fix:
1212 desc: Run base linters and fix issues
1313 cmds:
14− - golangci-lint run --fix
14+ - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
1515
1616 test:
1717 desc: Run tests
internal/tui/components/dialogs/models/models.go+2−2
@@ -219,7 +219,7 @@ func (m *modelDialogCmp) SetModelType(modelType int) tea.Cmd {
219219 providers := config.Providers()
220220 modelItems := []util.Model{}
221221 selectIndex := 0
222−
222+
223223 cfg := config.Get()
224224 var currentModel config.PreferredModel
225225 if m.modelType == LargeModelType {
@@ -227,7 +227,7 @@ func (m *modelDialogCmp) SetModelType(modelType int) tea.Cmd {
227227 } else {
228228 currentModel = cfg.Models.Small
229229 }
230−
230+
231231 for _, provider := range providers {
232232 name := provider.Name
233233 if name == "" {