Documentation
¶
Overview ¶
Package config contains helpers, defaults for linter
Index ¶
- Constants
- func DefaultConfToFile(isOnlyEnabled bool) error
- func GetConfig(flagConfPath string) (*lint.Config, error)
- func GetConfigPath(confFilePath string) (string, bool, error)
- func GetFormatter(c *lint.Config) (lint.Formatter, error)
- func GetLinter(conf *lint.Config) (*lint.Linter, error)
- func GetRules(conf *lint.Config) ([]lint.Rule, error)
- func Parse(confPath string) (*lint.Config, error)
- func Validate(conf *lint.Config) error
- func WriteConfToFile(outFilePath string, conf *lint.Config) (retErr error)
Constants ¶
View Source
const (
// ConfFileName represent config file name
ConfFileName = "commitlint.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultConfToFile ¶
DefaultConfToFile writes default config to given file
func GetConfigPath ¶
GetConfigPath returns config file path, follwing below
- check for conf in current directory
- check for conf flag
- load default conf
func GetFormatter ¶
GetFormatter returns the formatter as defined in conf
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.