Documentation ¶
Index ¶
- Constants
- Variables
- type CheckArchWarningDeepscan
- type CheckArchWarningDependency
- type CheckArchWarningMatch
- type CheckNotice
- type CheckQuality
- type CheckResult
- type CmdCheckIn
- type CmdCheckOut
- type CmdErrorOut
- type CmdGraphIn
- type CmdGraphOut
- type CmdMappingIn
- type CmdMappingOut
- type CmdMappingOutGrouped
- type CmdMappingOutList
- type CmdSchemaIn
- type CmdSchemaOut
- type CmdSelfInspectIn
- type CmdSelfInspectOut
- type CmdSelfInspectOutAnnotation
- type CmdVersionOut
- type DeepscanWarningDependency
- type DeepscanWarningGate
- type DeepscanWarningTarget
- type FileHold
- type FlagsRoot
- type Glob
- type GraphType
- type ImportType
- type MappingScheme
- type OutputType
- type ProjectFile
- type ReferableErr
- type ResolvedImport
- type ResolvedPath
- type UserSpaceError
Constants ¶
View Source
const ( DefaultProjectPath = "./" DefaultArchFileName = ".go-arch-lint.yml" DefaultGoModFileName = "go.mod" )
View Source
const ( SupportedVersionMin = 1 SupportedVersionMax = 3 )
View Source
const UnknownVersion = "dev"
Variables ¶
View Source
var GraphTypesValues = []string{ GraphTypeFlow, GraphTypeDI, }
View Source
var MappingSchemesValues = []string{ MappingSchemeList, MappingSchemeGrouped, }
View Source
var OutputTypeValues = []string{ OutputTypeASCII, OutputTypeJSON, }
Functions ¶
This section is empty.
Types ¶
type CheckArchWarningDeepscan ¶ added in v1.7.1
type CheckArchWarningDeepscan struct { Gate DeepscanWarningGate `json:"Gate"` Dependency DeepscanWarningDependency `json:"Dependency"` Target DeepscanWarningTarget `json:"Target"` }
type CheckArchWarningMatch ¶
type CheckNotice ¶
type CheckQuality ¶ added in v1.11.0
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 CmdCheckIn ¶ added in v1.9.0
type CmdCheckOut ¶ added in v1.9.0
type CmdCheckOut 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"` Qualities []CheckQuality `json:"Qualities"` }
type CmdErrorOut ¶ added in v1.9.0
type CmdErrorOut struct {
Error string `json:"Error"`
}
type CmdGraphIn ¶ added in v1.9.0
type CmdGraphOut ¶ added in v1.9.0
type CmdMappingIn ¶ added in v1.9.0
type CmdMappingIn struct { ProjectPath string ArchFile string Scheme MappingScheme }
type CmdMappingOut ¶ added in v1.9.0
type CmdMappingOut struct { ProjectDirectory string `json:"ProjectDirectory"` ModuleName string `json:"ModuleName"` MappingGrouped []CmdMappingOutGrouped `json:"MappingGrouped"` MappingList []CmdMappingOutList `json:"MappingList"` Scheme MappingScheme `json:"-"` }
type CmdMappingOutGrouped ¶ added in v1.9.0
type CmdMappingOutList ¶ added in v1.9.0
type CmdSchemaIn ¶ added in v1.9.0
type CmdSchemaIn struct {
Version int
}
type CmdSchemaOut ¶ added in v1.9.0
type CmdSelfInspectIn ¶ added in v1.9.0
type CmdSelfInspectOut ¶ added in v1.9.0
type CmdSelfInspectOut struct { ModuleName string `json:"ModuleName"` RootDirectory string `json:"RootDirectory"` LinterVersion string `json:"LinterVersion"` Notices []CmdSelfInspectOutAnnotation `json:"Notices"` Suggestions []CmdSelfInspectOutAnnotation `json:"Suggestions"` }
type CmdSelfInspectOutAnnotation ¶ added in v1.9.0
type CmdVersionOut ¶ added in v1.9.0
type DeepscanWarningDependency ¶ added in v1.7.1
type DeepscanWarningDependency struct { ComponentName string `json:"ComponentName"` // repository Name string `json:"Name"` // micro.ViewRepository InjectionAST string `json:"InjectionAST"` // c.provideMicroViewRepository() Injection common.Reference `json:"Injection"` // 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 DeepscanWarningGate struct { ComponentName string `json:"ComponentName"` // operations MethodName string `json:"MethodName"` // NewOperation Definition common.Reference `json:"Definition"` // internal/glue/code/line_count.go:54 RelativePath string `json:"-"` // internal/glue/code/line_count.go:54 }
type DeepscanWarningTarget ¶ added in v1.7.1
type FileHold ¶
type FileHold struct { File ProjectFile ComponentID *string }
type FlagsRoot ¶
type FlagsRoot struct { UseColors bool OutputType OutputType OutputJsonOneLine bool }
type Glob ¶ added in v1.7.1
type Glob string
type ImportType ¶
type ImportType uint8
const ( ImportTypeStdLib ImportType = iota ImportTypeProject ImportTypeVendor )
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 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 common.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() common.Reference
type ResolvedImport ¶
type ResolvedImport struct { Name string ImportType ImportType Reference common.Reference }
type ResolvedPath ¶
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.