config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Configuration for changelog-lint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments = []any

Arguments is type used for the arguments of a rule.

type Config

type Config struct {
	Rules  RulesConfig  `toml:"rule"`
	Parser ParserConfig `toml:"parser"`
}

func LoadConfig

func LoadConfig(configFile string) (*Config, error)

func (Config) LintingConfig

func (c Config) LintingConfig() *linting.Config

func (Config) ParserConfig

func (c Config) ParserConfig() (*parser.Config, error)

type ParserConfig

type ParserConfig struct {
	Patterns ParserPatterns
}

RuleConfig is type used for the rule configuration.

type ParserPatterns

type ParserPatterns struct {
	Title      string
	Version    string
	Subsection string
	Entry      string
}

type RuleConfig

type RuleConfig struct {
	Arguments Arguments
	Disabled  bool
}

RuleConfig is type used for the rule configuration.

type RulesConfig

type RulesConfig = map[string]RuleConfig

RulesConfig defines the config for all rules.

Jump to

Keyboard shortcuts

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