[PR #13121] chore: run the linter #19351

Open
opened 2026-04-16 07:04:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13121
Author: @mxyng
Created: 11/17/2025
Status: 🔄 Open

Base: mainHead: mxyng/lint-2


📝 Commits (8)

📊 Changes

108 files changed (+484 additions, -547 deletions)

View changed files

📝 .golangci.yaml (+16 -12)
📝 api/client_test.go (+2 -1)
📝 api/types.go (+12 -13)
📝 app/dialog/dlgs.go (+2 -1)
📝 app/server/server.go (+3 -5)
📝 app/server/server_unix.go (+3 -4)
📝 app/store/database.go (+8 -5)
📝 app/store/database_test.go (+2 -2)
📝 app/store/image.go (+2 -1)
📝 app/tools/browser.go (+16 -23)
📝 app/tools/browser_crawl.go (+3 -2)
📝 app/tools/browser_websearch.go (+3 -2)
📝 app/tools/web_fetch.go (+4 -3)
📝 app/tools/web_search.go (+4 -3)
📝 app/types/not/found.go (+2 -0)
📝 app/types/not/valids.go (+5 -4)
📝 app/ui/extract.go (+2 -1)
📝 app/ui/ui.go (+16 -16)
📝 app/updater/updater.go (+2 -2)
📝 app/updater/updater_darwin.go (+7 -7)

...and 80 more files

📄 Description

run a few linters to fix existing issues

  • modernize
  • perfsprint
  • prealloc
  • staticcheck

also run the formatter

split from #13109


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13121 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 11/17/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `mxyng/lint-2` --- ### 📝 Commits (8) - [`efd9f5e`](https://github.com/ollama/ollama/commit/efd9f5e67e1cc1e8ddd77623df11e5c22825c148) modernize - [`974ae8e`](https://github.com/ollama/ollama/commit/974ae8ef84ec4572fc94110a4c39bcd54c2212cd) perfsprint - [`78a75a3`](https://github.com/ollama/ollama/commit/78a75a30d8bba389d71a517a4d197e6a6d1a9634) prealloc - [`d322835`](https://github.com/ollama/ollama/commit/d3228355be115d46cd84301fb45020ed85fca69a) staticcheck - [`f01c83e`](https://github.com/ollama/ollama/commit/f01c83ed6d3febc430bce27d1dcc44f4b603263d) fmt - [`4d24d8a`](https://github.com/ollama/ollama/commit/4d24d8a77d1bf46da2d44f26a2929ee8f6d3e4df) gocritic - [`bb93e5a`](https://github.com/ollama/ollama/commit/bb93e5afe7f0581742c995a465f93f1742846180) errorlint - [`b59053a`](https://github.com/ollama/ollama/commit/b59053a883b11248385f99369e68f9f4f0ebd7a3) presets ### 📊 Changes **108 files changed** (+484 additions, -547 deletions) <details> <summary>View changed files</summary> 📝 `.golangci.yaml` (+16 -12) 📝 `api/client_test.go` (+2 -1) 📝 `api/types.go` (+12 -13) 📝 `app/dialog/dlgs.go` (+2 -1) 📝 `app/server/server.go` (+3 -5) 📝 `app/server/server_unix.go` (+3 -4) 📝 `app/store/database.go` (+8 -5) 📝 `app/store/database_test.go` (+2 -2) 📝 `app/store/image.go` (+2 -1) 📝 `app/tools/browser.go` (+16 -23) 📝 `app/tools/browser_crawl.go` (+3 -2) 📝 `app/tools/browser_websearch.go` (+3 -2) 📝 `app/tools/web_fetch.go` (+4 -3) 📝 `app/tools/web_search.go` (+4 -3) 📝 `app/types/not/found.go` (+2 -0) 📝 `app/types/not/valids.go` (+5 -4) 📝 `app/ui/extract.go` (+2 -1) 📝 `app/ui/ui.go` (+16 -16) 📝 `app/updater/updater.go` (+2 -2) 📝 `app/updater/updater_darwin.go` (+7 -7) _...and 80 more files_ </details> ### 📄 Description run a few linters to fix existing issues - modernize - perfsprint - prealloc - staticcheck also run the formatter split from #13109 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 07:04:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#19351