Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateReport ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func BuildEngine ¶
func BuildEngine(configs []RuleConfig) (*Engine, error)
type Rule ¶
type Rule interface {
ID() string
Validate(ctx context.Context, pr *scm.PullRequest) (Result, error)
}
Rule define o contrato que os plugins devem implementar
type RuleConfig ¶
type RuleConfig struct {
ID string `mapstructure:"id"`
Enabled bool `mapstructure:"enabled"`
Params map[string]interface{} `mapstructure:"params"`
}
RuleConfig mapeia o YAML
Click to show internal directories.
Click to hide internal directories.