Documentation ¶
Index ¶
- func GenerateLinterMetadata(styleguide *style.StyleGuide) (map[string]*linterMetadata, error)
- func RunLinter(ctx context.Context, specDirectory string, metadata *linterMetadata) (*style.LinterResponse, error)
- func SimpleLinterMetadata(linter string) *linterMetadata
- func WriteSpecForLinting(ctx context.Context, client connection.RegistryClient, spec *rpc.ApiSpec) (string, error)
- type ComputeConformanceTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateLinterMetadata ¶
func GenerateLinterMetadata(styleguide *style.StyleGuide) (map[string]*linterMetadata, error)
func SimpleLinterMetadata ¶ added in v0.6.10
func SimpleLinterMetadata(linter string) *linterMetadata
func WriteSpecForLinting ¶ added in v0.6.10
func WriteSpecForLinting(ctx context.Context, client connection.RegistryClient, spec *rpc.ApiSpec) (string, error)
Types ¶
type ComputeConformanceTask ¶
type ComputeConformanceTask struct { Client connection.RegistryClient Spec *rpc.ApiSpec LintersMetadata map[string]*linterMetadata StyleguideId string DryRun bool }
func (*ComputeConformanceTask) Run ¶
func (task *ComputeConformanceTask) Run(ctx context.Context) error
func (*ComputeConformanceTask) String ¶
func (task *ComputeConformanceTask) String() string
Click to show internal directories.
Click to hide internal directories.