From 02d129fe26c31412aad2e815db95ebe2dd99413f Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 27 Mar 2025 08:25:44 +0100 Subject: all: opt-out some functions to enforce linter checks New code will be limited to max 7 function params. --- pkg/instance/instance.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/instance') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 83a855e36..95c0463b5 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -464,6 +464,7 @@ func (inst *inst) csourceOptions() (csource.Options, error) { return opts, nil } +// nolint:revive func ExecprogCmd(execprog, executor, OS, arch, vmType string, opts csource.Options, optionalFlags bool, slowdown int, progFile string) string { repeatCount := 1 @@ -500,6 +501,7 @@ var MakeBin = func() string { return "make" }() +// nolint:revive func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int, threaded, newEnv bool) string { return fmt.Sprintf("%s -addr=%s -os=%s -arch=%s -pool=%d -vm=%d "+ "-threaded=%t -new-env=%t", prog, fwdAddr, os, arch, poolIdx, vmIdx, threaded, newEnv) -- cgit mrf-deployment