Documentation ¶
Index ¶
Constants ¶
View Source
const (
MAX_ALLOWED_VERSION = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct { Name string `mapstructure:"name,omitempty" json:"name,omitempty"` RuntimeVersion string `mapstructure:"runtime_version,omitempty" json:"runtime_version,omitempty"` Enabled bool `mapstructure:"enabled" json:"enabled"` DependencyFilePaths []string `mapstructure:"dependency_file_paths,omitempty" json:"dependency_file_paths,omitempty"` Meta interface{} `mapstructure:"meta,omitempty" json:"meta,omitempty"` Thresholds interface{} `mapstructure:"thresholds,omitempty" json:"thresholds,omitempty"` }
DSConfig is the struct for .deepsource.toml file
type AnalyzersData ¶
type ConfigValidator ¶
Struct to store the meta (Config) and output (Result) of config validation
func (*ConfigValidator) ValidateConfig ¶
func (c *ConfigValidator) ValidateConfig(inputConfig []byte, analyzersData AnalyzersData, transformersData TransformersData) Result
Entrypoint to the package `configvalidator` Accepts a string of deepsource config and validates it
type DSConfig ¶
type DSConfig struct { Version int `mapstructure:"version" json:"version"` ExcludePatterns []string `mapstructure:"exclude_patterns" json:"exclude_patterns,omitempty"` TestPatterns []string `mapstructure:"test_patterns,omitempty" json:"test_patterns,omitempty"` Analyzers []Analyzer `mapstructure:"analyzers,omitempty" json:"analyzers,omitempty"` Transformers []Transformer `mapstructure:"transformers,omitempty" json:"transformers,omitempty"` }
type Transformer ¶
Click to show internal directories.
Click to hide internal directories.