Documentation ¶
Index ¶
- Constants
- Variables
- type Annotation
- type Check
- type CheckArchWarningDeepscan
- type CheckArchWarningDependency
- type CheckArchWarningMatch
- type CheckNotice
- type CheckResult
- type CodeReference
- type DeepscanWarningDependency
- type DeepscanWarningGate
- type DeepscanWarningTarget
- type Error
- type FileHold
- type FlagsCheck
- type FlagsMapping
- type FlagsRoot
- type FlagsSchema
- type FlagsSelfInspect
- type Glob
- type ImportType
- type Mapping
- type MappingGrouped
- type MappingList
- type MappingScheme
- type OutputType
- type ProjectFile
- type ProjectInfo
- type Referable
- type ReferableErr
- type Reference
- type ResolvedImport
- type ResolvedPath
- type Schema
- type SelfInspect
- type UserSpaceError
- type Version
Constants ¶
View Source
const ( ProjectInfoDefaultArchFileName = ".go-arch-lint.yml" ProjectInfoDefaultGoModFileName = "go.mod" )
View Source
const SupportedVersion = 3
Variables ¶
View Source
var OutputTypeVariantsConst = []string{ OutputTypeASCII, OutputTypeJSON, }
Functions ¶
This section is empty.
Types ¶
type Annotation ¶ added in v1.7.1
type Check ¶
type Check struct { DocumentNotices []CheckNotice `json:"ExecutionWarnings"` ArchHasWarnings bool `json:"ArchHasWarnings"` ArchWarningsDependency []CheckArchWarningDependency `json:"ArchWarningsDeps"` ArchWarningsMatch []CheckArchWarningMatch `json:"ArchWarningsNotMatched"` ArchWarningsDeepScan []CheckArchWarningDeepscan `json:"ArchWarningsDeepScan"` OmittedCount int `json:"OmittedCount"` ModuleName string `json:"ModuleName"` }
type CheckArchWarningDeepscan ¶ added in v1.7.1
type CheckArchWarningDeepscan struct { Gate DeepscanWarningGate Dependency DeepscanWarningDependency Target DeepscanWarningTarget }
type CheckArchWarningDependency ¶
type CheckArchWarningDependency struct { ComponentName string `json:"ComponentName"` FileRelativePath string `json:"FileRelativePath"` FileAbsolutePath string `json:"FileAbsolutePath"` ResolvedImportName string `json:"ResolvedImportName"` Reference Reference `json:"-"` SourceCodePreview []byte `json:"-"` }
type CheckArchWarningMatch ¶
type CheckNotice ¶
type CheckResult ¶
type CheckResult struct { DependencyWarnings []CheckArchWarningDependency MatchWarnings []CheckArchWarningMatch DeepscanWarnings []CheckArchWarningDeepscan }
func (*CheckResult) Append ¶ added in v1.7.1
func (cr *CheckResult) Append(another CheckResult)
func (*CheckResult) HasNotices ¶ added in v1.7.1
func (cr *CheckResult) HasNotices() bool
type CodeReference ¶ added in v1.7.1
func NewCodeReference ¶ added in v1.7.1
func NewCodeReference(pointer Reference, lineFrom, lineTo int) CodeReference
func NewCodeReferenceRelative ¶ added in v1.7.1
func NewCodeReferenceRelative(pointer Reference, relTop, relBottom int) CodeReference
type DeepscanWarningDependency ¶ added in v1.7.1
type DeepscanWarningDependency struct { ComponentName string // repository Name string // micro.ViewRepository InjectionAST string // c.provideMicroViewRepository() Injection Reference // internal/app/internal/container/cmd_mapping.go:15 InjectionPath string `json:"-"` // internal/app/internal/container/cmd_mapping.go:15 SourceCodePreview []byte `json:"-"` }
type DeepscanWarningGate ¶ added in v1.7.1
type DeepscanWarningTarget ¶ added in v1.7.1
type DeepscanWarningTarget struct {
RelativePath string `json:"-"` // internal/app/internal/container/cmd_mapping.go:15
}
type FileHold ¶
type FileHold struct { File ProjectFile ComponentID *string }
type FlagsCheck ¶
type FlagsCheck struct { Project ProjectInfo MaxWarnings int }
type FlagsMapping ¶
type FlagsMapping struct { Project ProjectInfo Scheme MappingScheme }
type FlagsRoot ¶
type FlagsRoot struct { UseColors bool OutputType OutputType OutputJsonOneLine bool }
type FlagsSchema ¶
type FlagsSelfInspect ¶ added in v1.7.1
type FlagsSelfInspect struct {
Project ProjectInfo
}
type Glob ¶ added in v1.7.1
type Glob string
type ImportType ¶
type ImportType uint8
const ( ImportTypeStdLib ImportType = iota ImportTypeProject ImportTypeVendor )
type Mapping ¶
type Mapping struct { ProjectDirectory string `json:"ProjectDirectory"` ModuleName string `json:"ModuleName"` MappingGrouped []MappingGrouped `json:"MappingGrouped"` MappingList []MappingList `json:"MappingList"` Scheme MappingScheme `json:"-"` }
type MappingGrouped ¶
type MappingList ¶
type MappingScheme ¶
type MappingScheme = string
const ( MappingSchemeGrouped MappingScheme = "grouped" MappingSchemeList MappingScheme = "list" )
type OutputType ¶
type OutputType = string
const ( OutputTypeDefault OutputType = "default" OutputTypeASCII OutputType = "ascii" OutputTypeJSON OutputType = "json" )
type ProjectFile ¶
type ProjectFile struct { Path string Imports []ResolvedImport }
type ProjectInfo ¶
type ReferableErr ¶ added in v1.7.1
type ReferableErr struct {
// contains filtered or unexported fields
}
func NewReferableErr ¶ added in v1.7.1
func NewReferableErr(err error, ref Reference) ReferableErr
func (ReferableErr) Error ¶ added in v1.7.1
func (r ReferableErr) Error() string
func (ReferableErr) Is ¶ added in v1.7.1
func (r ReferableErr) Is(err error) bool
func (ReferableErr) Reference ¶ added in v1.7.1
func (r ReferableErr) Reference() Reference
type ResolvedImport ¶
type ResolvedImport struct { Name string ImportType ImportType }
type ResolvedPath ¶
type SelfInspect ¶ added in v1.7.1
type SelfInspect struct { LinterVersion string `json:"LinterVersion"` Notices []Annotation `json:"Notices"` Suggestions []Annotation `json:"Suggestions"` }
type UserSpaceError ¶
type UserSpaceError struct {
// contains filtered or unexported fields
}
func NewUserSpaceError ¶
func NewUserSpaceError(msg string) UserSpaceError
func (UserSpaceError) Error ¶
func (u UserSpaceError) Error() string
func (UserSpaceError) Is ¶
func (u UserSpaceError) Is(err error) bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.