sonarqube

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

View Source
const (
	SonarAnalysisActionClass = "hudson.plugins.sonar.action.SonarAnalysisAction"
	SonarMetricKeys          = "" /* 432-byte string literal not displayed */
	SonarAdditionalFields    = "metrics,periods"
)

Variables

This section is empty.

Functions

func NewSonar

func NewSonar(client *sonargo.Client) *sonarQube

Types

type Client

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

func NewSonarQubeClient

func NewSonarQubeClient(options *Options) (*Client, error)

func NewSonarQubeClientOrDie

func NewSonarQubeClientOrDie(options *Options) *Client

func (*Client) SonarQube

func (s *Client) SonarQube() *sonargo.Client

return sonarqube client Also we can wrap some methods to avoid direct use sonar client

type Options

type Options struct {
	Host  string `json:",omitempty" yaml:"host" description:"SonarQube service host address"`
	Token string `json:",omitempty" yaml:"token" description:"SonarQube service token"`
}

func NewSonarQubeOptions

func NewSonarQubeOptions() *Options

func (*Options) AddFlags

func (s *Options) AddFlags(fs *pflag.FlagSet, c *Options)

func (*Options) ApplyTo

func (s *Options) ApplyTo(options *Options)

func (*Options) Validate

func (s *Options) Validate() []error

type SonarInterface

type SonarInterface interface {
	GetSonarResultsByTaskIds(taskId ...string) ([]*SonarStatus, error)
}

type SonarStatus

type SonarStatus struct {
	Measures      *sonargo.MeasuresComponentObject `json:"measures,omitempty"`
	Issues        *sonargo.IssuesSearchObject      `json:"issues,omitempty"`
	GeneralAction *devops.GeneralAction            `json:"generalAction,omitempty"`
	Task          *sonargo.CeTaskObject            `json:"task,omitempty"`
}

Jump to

Keyboard shortcuts

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