checkmatlabcode

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	ScriptPath string
}

type CodeAnalyzer added in v0.6.0

type CodeAnalyzer interface {
	AnalyzeCode(ctx context.Context, logger entities.Logger, client entities.MATLABSessionClient, scriptPath string) ([]CodeIssue, error)
}

type CodeIssue added in v0.6.0

type CodeIssue struct {
	Description string
	Line        int
	StartColumn int
	EndColumn   int
	Severity    string
	Fixable     bool
}

CodeIssue represents a single code issue found by the code analysis

type PathValidator

type PathValidator interface {
	ValidateMATLABScript(filePath string) (string, error)
}

type ReturnArgs

type ReturnArgs struct {
	CodeIssues []CodeIssue
}

type Usecase

type Usecase struct {
	// contains filtered or unexported fields
}

func New

func New(
	pathValidator PathValidator,
	codeAnalyzer CodeAnalyzer,
) *Usecase

func (*Usecase) Execute

func (u *Usecase) Execute(ctx context.Context, sessionLogger entities.Logger, client entities.MATLABSessionClient, request Args) (ReturnArgs, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL