config

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 7 Imported by: 17

Documentation

Overview

Package config implements revive's configuration data structures and related methods

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(configPath string) (*lint.Config, error)

GetConfig yields the configuration

func GetFormatter

func GetFormatter(formatterName string) (lint.Formatter, error)

GetFormatter yields the formatter for lint failures

func GetLintingRules

func GetLintingRules(config *lint.Config, extraRules []lint.Rule) ([]lint.Rule, error)

GetLintingRules yields the linting rules that must be applied by the linter

Types

This section is empty.

Jump to

Keyboard shortcuts

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