rules

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfDockerIsInstalled

func CheckIfDockerIsInstalled() (string, error)

func ExecuteCommandAndExpectNoResultToBeCorrect

func ExecuteCommandAndExpectNoResultToBeCorrect(command string) (string, error)

Types

type AstMetrics

type AstMetrics struct {
}

func (*AstMetrics) CanFix added in v0.0.4

func (o *AstMetrics) CanFix() bool

func (*AstMetrics) Execute

func (o *AstMetrics) Execute(c config.Config) (string, error)

func (*AstMetrics) Fix added in v0.0.4

func (o *AstMetrics) Fix(config config.Config) (string, error)

func (*AstMetrics) Name

func (o *AstMetrics) Name() string

func (*AstMetrics) Slug

func (o *AstMetrics) Slug() string

type CustomCommand

type CustomCommand struct {
	Command string
}

func (*CustomCommand) CanFix added in v0.0.4

func (o *CustomCommand) CanFix() bool

func (*CustomCommand) Execute

func (o *CustomCommand) Execute() (string, error)

func (*CustomCommand) Fix added in v0.0.4

func (o *CustomCommand) Fix(config config.Config) (string, error)

func (*CustomCommand) Name

func (o *CustomCommand) Name() string

func (*CustomCommand) Slug

func (o *CustomCommand) Slug() string

type EsLint

type EsLint struct {
}

func (*EsLint) CanFix added in v0.0.4

func (o *EsLint) CanFix() bool

func (*EsLint) Execute

func (o *EsLint) Execute(config config.Config) (string, error)

func (*EsLint) Fix added in v0.0.4

func (o *EsLint) Fix(config config.Config) (string, error)

func (*EsLint) Name

func (o *EsLint) Name() string

func (*EsLint) Slug

func (o *EsLint) Slug() string

type NoDump

type NoDump struct {
}

func (*NoDump) CanFix added in v0.0.4

func (o *NoDump) CanFix() bool

func (*NoDump) Execute

func (o *NoDump) Execute(config config.Config) (string, error)

func (*NoDump) Fix added in v0.0.4

func (o *NoDump) Fix(config config.Config) (string, error)

func (*NoDump) Name

func (o *NoDump) Name() string

func (*NoDump) Slug

func (o *NoDump) Slug() string

type NoExit

type NoExit struct {
}

func (*NoExit) CanFix added in v0.0.4

func (o *NoExit) CanFix() bool

func (*NoExit) Execute

func (o *NoExit) Execute(config config.Config) (string, error)

func (*NoExit) Fix added in v0.0.4

func (o *NoExit) Fix(config config.Config) (string, error)

func (*NoExit) Name

func (o *NoExit) Name() string

func (*NoExit) Slug

func (o *NoExit) Slug() string

type NoSyntaxError

type NoSyntaxError struct {
}

func (*NoSyntaxError) CanFix added in v0.0.4

func (o *NoSyntaxError) CanFix() bool

func (*NoSyntaxError) Execute

func (o *NoSyntaxError) Execute(config config.Config) (string, error)

func (*NoSyntaxError) Fix added in v0.0.4

func (o *NoSyntaxError) Fix(config config.Config) (string, error)

func (*NoSyntaxError) Name

func (o *NoSyntaxError) Name() string

func (*NoSyntaxError) Slug

func (o *NoSyntaxError) Slug() string

type PhpCS added in v0.0.3

type PhpCS struct {
}

func (*PhpCS) CanFix added in v0.0.4

func (o *PhpCS) CanFix() bool

func (*PhpCS) Execute added in v0.0.3

func (o *PhpCS) Execute(config config.Config) (string, error)

func (*PhpCS) Fix added in v0.0.4

func (o *PhpCS) Fix(config config.Config) (string, error)

func (*PhpCS) Name added in v0.0.3

func (o *PhpCS) Name() string

func (*PhpCS) Slug added in v0.0.3

func (o *PhpCS) Slug() string

type PhpStan added in v0.0.3

type PhpStan struct {
}

func (*PhpStan) CanFix added in v0.0.4

func (o *PhpStan) CanFix() bool

func (*PhpStan) Execute added in v0.0.3

func (o *PhpStan) Execute(config config.Config) (string, error)

func (*PhpStan) Fix added in v0.0.4

func (o *PhpStan) Fix(config config.Config) (string, error)

func (*PhpStan) Name added in v0.0.3

func (o *PhpStan) Name() string

func (*PhpStan) Slug added in v0.0.3

func (o *PhpStan) Slug() string

type Psr1

type Psr1 struct {
}

func (*Psr1) CanFix added in v0.0.4

func (o *Psr1) CanFix() bool

func (*Psr1) Execute

func (o *Psr1) Execute(config config.Config) (string, error)

func (*Psr1) Fix added in v0.0.4

func (o *Psr1) Fix(config config.Config) (string, error)

func (*Psr1) Name

func (o *Psr1) Name() string

func (*Psr1) Slug

func (o *Psr1) Slug() string

type Psr12

type Psr12 struct {
}

func (*Psr12) CanFix added in v0.0.4

func (o *Psr12) CanFix() bool

func (*Psr12) Execute

func (o *Psr12) Execute(config config.Config) (string, error)

func (*Psr12) Fix added in v0.0.4

func (o *Psr12) Fix(config config.Config) (string, error)

func (*Psr12) Name

func (o *Psr12) Name() string

func (*Psr12) Slug

func (o *Psr12) Slug() string

type Psr2

type Psr2 struct {
}

func (*Psr2) CanFix added in v0.0.4

func (o *Psr2) CanFix() bool

func (*Psr2) Execute

func (o *Psr2) Execute(config config.Config) (string, error)

func (*Psr2) Fix added in v0.0.4

func (o *Psr2) Fix(config config.Config) (string, error)

func (*Psr2) Name

func (o *Psr2) Name() string

func (*Psr2) Slug

func (o *Psr2) Slug() string

type Rule

type Rule interface {
	Slug() string

	Name() string

	Execute(config config.Config) (string, error)

	CanFix() bool

	Fix(config config.Config) (string, error)
}

func Rules

func Rules() []Rule

type Symfony

type Symfony struct {
}

func (*Symfony) CanFix added in v0.0.4

func (o *Symfony) CanFix() bool

func (*Symfony) Execute

func (o *Symfony) Execute(config config.Config) (string, error)

func (*Symfony) Fix added in v0.0.4

func (o *Symfony) Fix(config config.Config) (string, error)

func (*Symfony) Name

func (o *Symfony) Name() string

func (*Symfony) Slug

func (o *Symfony) Slug() string

Jump to

Keyboard shortcuts

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