vacuumlint

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package vacuumlint runs Vacuum with an effective OpenLint ruleset and turns its results into ifc7 findings. It is shared by the OpenAPI and JSON Schema lint plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRuleSet

func BuildRuleSet(rs *contract.RulesetDocument, kind Kind) (*rulesets.RuleSet, string, error)

BuildRuleSet turns an effective ruleset into a runnable Vacuum rule set for kind. Built-ins that don't apply to kind are dropped; if none apply, the kind's recommended set is used, so one org ruleset covers every interface type.

func Engine

func Engine() contract.Engine

Engine returns the lint engine name and version.

func Failure

func Failure(msg string) contract.LintOutput

Failure is the exported form of failure for plugins that fail before running Vacuum (for example, unparsable input).

func Output

Output sorts findings and builds the plugin output: ifc7 score with default weights, raw text rendered from findings, and finding counts.

func Run

Run executes rs against spec and returns the plugin output.

Types

type Kind

type Kind int

Kind selects the built-in rules and execution mode.

const (
	OpenAPI Kind = iota
	JSONSchema
)

Jump to

Keyboard shortcuts

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