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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user