cmd/ugo/main.go
File main.go
has 610 lines of code (exceeds 500 allowed). Consider refactoring. Wontfix
Wontfix
// Copyright (c) 2020-2023 Ozan Hacıbekiroğlu.
// Use of this source code is governed by a MIT License
// that can be found in the LICENSE file.
//go:build !js
repl
has 24 methods (exceeds 20 allowed). Consider refactoring. Wontfix
Wontfix
type repl struct {
ctx context.Context
eval *ugo.Eval
out io.Writer
commands map[string]func(string) error
Function main
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Wontfix
Wontfix
func main() {
filePath, timeout, err := parseFlags(flag.CommandLine, os.Args[1:])
checkErr(err, nil)
ctx, cancel := context.WithCancel(context.Background())
Function executeScript
has 5 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
ctx context.Context,
modulePath string,
workdir string,
script []byte,
traceOut io.Writer,