aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-03-27 08:25:44 +0100
committerTaras Madan <tarasmadan@google.com>2025-03-27 10:07:16 +0000
commit02d129fe26c31412aad2e815db95ebe2dd99413f (patch)
treecf240d8f23e48fbb1b70cc0a30c68a754ca3cf73 /pkg/instance
parentc66ac62e1284de84775ccf0edf94f224db8b4509 (diff)
all: opt-out some functions to enforce linter checks
New code will be limited to max 7 function params.
Diffstat (limited to 'pkg/instance')
-rw-r--r--pkg/instance/instance.go2
1 files changed, 2 insertions, 0 deletions
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)