configuration

package
v0.0.0-...-13e4f3d Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package configuration handles the configuration of the Arduino Lint tool.

Index

Constants

This section is empty.

Variables

View Source
var Commit string

Commit is the HEAD commit of the Arduino Lint repository when the application was built.

View Source
var Timestamp string

Timestamp is the timestamp of the build.

View Source
var Version string

Version is the build version.

Functions

func BuildCommit

func BuildCommit() string

BuildCommit returns the HEAD commit of the Arduino Lint repository when the application was built.

func BuildTimestamp

func BuildTimestamp() string

BuildTimestamp returns the timestamp of the build.

func BuildVersion

func BuildVersion() string

BuildVersion returns the build version.

func EnableLogging

func EnableLogging(enable bool)

EnableLogging enables or disables logging debug output.

func Initialize

func Initialize(flags *pflag.FlagSet, projectPaths []string) error

Initialize sets up the tool configuration according to defaults and user-specified options.

func OutputFormat

func OutputFormat() outputformat.Type

OutputFormat returns the tool output format configuration value.

func Recursive

func Recursive() bool

Recursive returns the recursive project search configuration value.

func ReportFilePath

func ReportFilePath() *paths.Path

ReportFilePath returns the path to save the report file at.

func RuleModes

func RuleModes(superprojectType projecttype.Type) map[rulemode.Type]bool

RuleModes returns the rule modes configuration for the given project type.

func SuperprojectTypeFilter

func SuperprojectTypeFilter() projecttype.Type

SuperprojectTypeFilter returns the superproject type filter configuration.

func TargetPaths

func TargetPaths() paths.PathList

TargetPaths returns the projects search paths.

func Verbose

func Verbose() bool

Verbose returns the verbosity setting.

func VersionMode

func VersionMode() bool

VersionMode returns the --version setting.

Types

This section is empty.

Directories

Path Synopsis
Package rulemode defines the tool configuration options that affect rules.
Package rulemode defines the tool configuration options that affect rules.

Jump to

Keyboard shortcuts

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