From 05853ec87096d74ed6cff1b6053682736da30d1c Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 19 Feb 2025 09:39:18 +0000 Subject: [PATCH] Tune linter configuration --- .golangci.yml | 7 +++++-- qemu.go | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 054f1a1..746c44f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -77,8 +77,12 @@ linters-settings: # Disable error checking, as errorcheck detects more errors and is more configurable. gosec: excludes: - - "G104" + - "G115" + - "G204" - "G304" + - "G404" + - "G401" + - "G501" funlen: lines: 80 @@ -240,7 +244,6 @@ linters: - gosimple - ineffassign - misspell - - nakedret - staticcheck - typecheck - unconvert diff --git a/qemu.go b/qemu.go index b17a464..433302a 100644 --- a/qemu.go +++ b/qemu.go @@ -99,7 +99,7 @@ func (*qemuVMProvider) Build(tx Transaction, v *VM, n *Network) error { } // Enable the telnetPort when debugging image builds. -//var telnetPort = 2020 +// var telnetPort = 2020 func runVM(vm *VM, network *Network) RunnableTask { // See aux/post-install.sh for how the vmine_ kernel @@ -115,7 +115,7 @@ func runVM(vm *VM, network *Network) RunnableTask { bootArgs = fmt.Sprintf("%s vmine_ssh_key=%s", bootArgs, strings.Replace(vm.SSHKey, " ", "_", -1)) } - //telnetPort++ + // telnetPort++ return newCmd( "/usr/bin/qemu-system-x86_64", @@ -146,8 +146,8 @@ func runVM(vm *VM, network *Network) RunnableTask { "-m", fmt.Sprintf("%dM", vm.RAM), "-smp", fmt.Sprintf("%d", vm.CPU), // Serial console for debugging. - //"-serial", "file:"+vm.Hostname+".log", - //"-serial", fmt.Sprintf("telnet:127.0.0.1:%d,server,nowait", telnetPort), + // "-serial", "file:"+vm.Hostname+".log", + // "-serial", fmt.Sprintf("telnet:127.0.0.1:%d,server,nowait", telnetPort), // Boot parameters. "-kernel", vm.Image.KernelPath, "-initrd", vm.Image.InitrdPath, -- GitLab