platformtxt

package
v0.0.0-...-1075ad9 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package platformtxt provides functions specific to linting the platform.txt configuration files of Arduino platform platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#platformtxt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluggableDiscoveryNames

func PluggableDiscoveryNames(platformTxt *properties.Map) []string

PluggableDiscoveryNames returns the list of pluggable discovery names from the given platform.txt properties.

func Properties

func Properties(platformPath *paths.Path) (*properties.Map, error)

Properties parses the platform.txt from the given path and returns the data.

func ToolNames

func ToolNames(platformTxt *properties.Map) []string

ToolNames returns the list of tool names from the given platform.txt properties.

func UserProvidedFieldNames

func UserProvidedFieldNames(platformTxt *properties.Map) map[string][]string

UserProvidedFieldNames returns the list of user provided field names platform.txt properties, mapped by tool name.

func Validate

func Validate(platformTxt *properties.Map) map[compliancelevel.Type]schema.ValidationResult

Validate validates platform.txt data against the JSON schema and returns a map of the result for each compliance level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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