ruby

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 12 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 Ruby language to evaluate a repository.

func (*Language) DefaultFileExtension

func (l *Language) DefaultFileExtension() string

DefaultFileExtension returns the default file extension.

func (*Language) DefaultTestFileSuffix

func (l *Language) DefaultTestFileSuffix() string

DefaultTestFileSuffix returns the default test file suffix.

func (*Language) ExecuteTests

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

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

Mistakes builds a Ruby 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) 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