ci: add golangci-lint config and fix formatting

- Add .golangci.yml with minimal linters (govet, ineffassign)
- Run gofmt -s and goimports on all files to fix formatting
- Disable fieldalignment and copylocks checks in govet
This commit is contained in:
2025-12-11 17:53:28 +01:00
parent 6b66ae5429
commit 914307ac8f
89 changed files with 1516 additions and 1618 deletions

View File

@@ -171,9 +171,9 @@ func (m *Manager) Setup() error {
// Log current swap status
if total, used, free, err := m.GetCurrentSwap(); err == nil {
m.log.Info("Swap status after setup",
"total_mb", total,
"used_mb", used,
m.log.Info("Swap status after setup",
"total_mb", total,
"used_mb", used,
"free_mb", free,
"added_gb", m.sizeGB)
}