enable gofumpt formatter

Based on our discussion gofumpt won the vote so use that one via
golangci-lint.

https://github.com/containers/podman/discussions/27291

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-11-11 12:12:42 +01:00
parent 2555b8b413
commit 5c1ed12d8d
389 changed files with 1228 additions and 1600 deletions

View File

@@ -55,8 +55,8 @@ func isValidUnicode(c uint32) bool {
/* This is based on code from systemd (src/basic/escape.c), marked LGPL-2.1-or-later and is copyrighted by the systemd developers */
func cUnescapeOne(p string, acceptNul bool) (int, rune, bool) {
var count = 1
var eightBit = false
count := 1
eightBit := false
var ret rune
// Unescapes C style. Returns the unescaped character in ret.
@@ -290,7 +290,7 @@ loop1:
}
if flags&(SplitCUnescape|SplitUnescapeSeparators) != 0 {
var r = -1
r := -1
var u rune
if flags&SplitCUnescape != 0 {