lint

command
v0.24.3 Latest Latest
Warning

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

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

README

lint

mwcli custom command linting

Trying to make the commands have a consistent look and feel, one step at a time.

You can run this work in progress tool as follows:

go run ./tools/lint/main.go

You can also run this from the main makefile

make linti

This will soon be included as a pre commit hook...

Rules

All rules and conditions can currently be seen in main.go.

Skipping

Skipping can be done by adding annotations to commands

Skip children

You can skip linting certain commands children.

cmd.Annotations["mwcli-lint-skip-children"] = "yarhar"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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