ruletest

package
v0.0.0-...-ec16dcc Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package ruletest provides utilities for testing linter rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, rule Rule)

Run runs a linter rule against the "testdata" directory.

Types

type Rule

type Rule func(*lint.Context)

Rule is a linter rule.

Jump to

Keyboard shortcuts

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