cq

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0 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 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) (uint64, error)

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

func (*CQ) GenerateCQPipeline4Go

func (cq *CQ) GenerateCQPipeline4Go(req CQRequest) (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 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