cq

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CQ

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

func New

func New(options ...Option) *CQ

func (*CQ) Analyze

func (cq *CQ) Analyze(req CQRequest, userID string) (uint64, error)

Analyze trigger a pipeline to analyze code quality, return pipelineID and error.

func (*CQ) GenerateCQPipeline4Go

func (cq *CQ) GenerateCQPipeline4Go(req CQRequest, userID string) (uint64, error)

GenerateCQPipeline4Go 构造用于 Go 项目代码质量分析的流水线

func (*CQ) TriggerByMR

func (cq *CQ) TriggerByMR(mr apistructs.MergeRequestInfo) (uint64, error)

type CQRequest

type CQRequest struct {
	AppID    uint64
	Commit   string
	Language Language
}

type Language

type Language string
var (
	LanguageGo   Language = "go"
	LanguageJava Language = "java"
	LanguageJs   Language = "javascript"
)

type MRCQRequest

type MRCQRequest struct {
	MRInfo apistructs.MergeRequestInfo
}

type Option

type Option func(*CQ)

func WithBranchRule

func WithBranchRule(svc *branchrule.BranchRule) Option

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

Jump to

Keyboard shortcuts

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