codequality

package
v0.0.0-...-1fa52ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-2-Clause, ISC, + 1 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CqFileMetrics

type CqFileMetrics struct {
	domainlayer.DomainEntity
	ProjectKey                          string `gorm:"index;type:varchar(255)"` //domain project key
	FileName                            string `gorm:"type:varchar(255)"`
	FilePath                            string
	FileLanguage                        string `gorm:"type:varchar(20)"`
	CodeSmells                          int
	SqaleIndex                          int
	SqaleRating                         float64
	Bugs                                int
	ReliabilityRating                   string `gorm:"type:varchar(20)"`
	Vulnerabilities                     int
	SecurityRating                      string `gorm:"type:varchar(20)"`
	SecurityHotspots                    int
	SecurityHotspotsReviewed            float64
	SecurityReviewRating                string `gorm:"type:varchar(20)"`
	Ncloc                               int
	UncoveredLines                      int
	Coverage                            float64
	LinesToCover                        int
	DuplicatedLinesDensity              float64
	DuplicatedBlocks                    int
	DuplicatedFiles                     int
	DuplicatedLines                     int
	EffortToReachMaintainabilityRatingA int
	Complexity                          int
	CognitiveComplexity                 int
	NumOfLines                          int
}

func (CqFileMetrics) TableName

func (CqFileMetrics) TableName() string

type CqIssue

type CqIssue struct {
	domainlayer.DomainEntity
	Rule                     string `gorm:"type:varchar(255)"`
	Severity                 string `gorm:"type:varchar(100)"`
	Component                string `gorm:"type:varchar(255)"`
	ProjectKey               string `gorm:"index;type:varchar(100)"` //domain project key
	Line                     int
	Status                   string `gorm:"type:varchar(20)"`
	Message                  string
	Debt                     int
	Effort                   int
	CommitAuthorEmail        string `json:"author" gorm:"type:varchar(255)"`
	Assignee                 string `json:"assignee" gorm:"type:varchar(255)"`
	Hash                     string `gorm:"type:varchar(100)"`
	Tags                     string
	Type                     string `gorm:"type:varchar(100)"`
	Scope                    string `gorm:"type:varchar(255)"`
	StartLine                int    `json:"startLine"`
	EndLine                  int    `json:"endLine"`
	StartOffset              int    `json:"startOffset"`
	EndOffset                int    `json:"endOffset"`
	VulnerabilityProbability string `gorm:"type:varchar(100)"`
	SecurityCategory         string `gorm:"type:varchar(100)"`
	CreatedDate              *common.Iso8601Time
	UpdatedDate              *common.Iso8601Time
}

func (CqIssue) TableName

func (CqIssue) TableName() string

type CqIssueCodeBlock

type CqIssueCodeBlock struct {
	domainlayer.DomainEntity
	IssueKey    string `json:"key" gorm:"index"`
	Component   string `gorm:"index"`
	StartLine   int
	EndLine     int
	StartOffset int
	EndOffset   int
	Msg         string
}

func (CqIssueCodeBlock) TableName

func (CqIssueCodeBlock) TableName() string

type CqProject

type CqProject struct {
	domainlayer.DomainEntity
	Name             string `gorm:"type:varchar(255)"`
	Qualifier        string `gorm:"type:varchar(255)"`
	Visibility       string `gorm:"type:varchar(64)"`
	LastAnalysisDate *common.Iso8601Time
	CommitSha        string `gorm:"type:varchar(128)"`
}

func (*CqProject) ScopeId

func (s *CqProject) ScopeId() string

func (*CqProject) ScopeName

func (s *CqProject) ScopeName() string

func (CqProject) TableName

func (CqProject) TableName() string

Jump to

Keyboard shortcuts

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