tool

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aibolit

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

Aibolit is a tool for identifying refactoring opportunities in Java code. @todo #2:45min Implement support for Aibolit with multiple classes. As for now, we check only the first class, and return imperfections result. Instead, we need to support multiple files instead. Let's implement such Aibolit struct, that will be able to manage whole project, instead of single Java file. Also see this related issue: https://github.com/cqfn/refrax/issues/28.

func NewAibolit

func NewAibolit(filename string) *Aibolit

NewAibolit creates a new instance of Aibolit for analyzing a single Java file.

func (*Aibolit) Imperfections

func (a *Aibolit) Imperfections() string

Imperfections analyzes the Java code and identifies refactoring opportunities.

type CombinedTool

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

CombinedTool represents a tool that combines multiple tools into one.

func (*CombinedTool) Imperfections

func (c *CombinedTool) Imperfections() string

Imperfections gathers and returns the imperfections from all combined tools.

type MockTool

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

MockTool represents a mock implementation of the Tool interface.

func (*MockTool) Imperfections

func (a *MockTool) Imperfections() string

Imperfections returns the imperfections associated with the MockTool.

type Tool

type Tool interface {
	Imperfections() string
}

Tool defines the interface for a tool that can be used to identify and report imperfections in artifacts.

func NewCombined

func NewCombined(tls ...Tool) Tool

NewCombined creates a new CombinedTool instance with the provided tools.

func NewEmpty

func NewEmpty() Tool

NewEmpty creates a new instance of MockTool with empty data.

func NewMock

func NewMock(data string) Tool

NewMock creates a new instance of MockTool with the provided data.

Jump to

Keyboard shortcuts

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