java

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language struct{}

Language holds a Java language to evaluate a repository.

func (*Language) DefaultFileExtension added in v0.6.0

func (l *Language) DefaultFileExtension() string

DefaultFileExtension returns the default file extension.

func (*Language) DefaultTestFileSuffix added in v0.6.0

func (l *Language) DefaultTestFileSuffix() string

DefaultTestFileSuffix returns the default test file suffix.

func (*Language) ExecuteTests added in v0.6.0

func (l *Language) ExecuteTests(logger *log.Logger, repositoryPath string) (testResult *language.TestResult, problems []error, err error)

ExecuteTests invokes the language specific testing on the given repository.

func (*Language) Files

func (l *Language) Files(logger *log.Logger, repositoryPath string) (filePaths []string, err error)

Files returns a list of relative file paths of the repository that should be evaluated.

func (*Language) ID

func (l *Language) ID() (id string)

ID returns the unique ID of this language.

func (*Language) ImportPath

func (l *Language) ImportPath(projectRootPath string, filePath string) (importPath string)

ImportPath returns the import path of the given source file.

func (*Language) Mistakes added in v0.6.0

func (l *Language) Mistakes(logger *log.Logger, repositoryPath string) (mistakes []string, err error)

Mistakes builds a Java repository and returns the list of mistakes found.

func (*Language) Name

func (l *Language) Name() (id string)

Name is the prose name of this language.

func (*Language) SupportsFix added in v1.0.0

func (l *Language) SupportsFix() bool

SupportsFix reports if the language is supported by "symflower fix".

func (*Language) SupportsTemplate added in v1.0.0

func (l *Language) SupportsTemplate() bool

SupportsTemplate reports if the language is supported by "symflower unit-test-skeleton".

func (*Language) TestFilePath

func (l *Language) TestFilePath(projectRootPath string, filePath string) (testFilePath string)

TestFilePath returns the file path of a test file given the corresponding file path of the test's source file.

func (*Language) TestFramework

func (l *Language) TestFramework() (testFramework string)

TestFramework returns the human-readable name of the test framework that should be used.

Jump to

Keyboard shortcuts

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