sketch

package
v0.0.0-...-5811ad1 Latest Latest
Warning

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

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

Documentation

Overview

Package sketch provides functions specific to linting Arduino sketches. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsMainSketchFile

func ContainsMainSketchFile(searchPath *paths.Path) bool

ContainsMainSketchFile checks whether the provided path contains a file with valid main sketch file extension.

func HasMainFileValidExtension

func HasMainFileValidExtension(filePath *paths.Path) bool

HasMainFileValidExtension returns whether the file at the given path has a valid sketch main file extension. Sketches may contain source files with other extensions (e.g., .h, .cpp), but they are required to have at least one file with a main extension.

func HasSupportedExtension

func HasSupportedExtension(filePath *paths.Path) bool

HasSupportedExtension returns whether the file at the given path has any of the file extensions supported for source/header files of a sketch.

func MetadataPath

func MetadataPath(sketchPath *paths.Path) *paths.Path

MetadataPath returns the path of the sketch's metadata file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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