tint

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

README

tint

Tree-sitter powered linter

  • Running: tint lint
  • Config: Sample file available in .tint.lint.sample (default loc is .tint.lint) For detailed instructions and examples on how to write a new rule, see docs/writing_rules.md.
  • Output format: filename:start-line:start-col:end-line:end-col: message
Installation
go install github.com/meain/tint@latest
Example output:
config.go:72:4:72:9: do not use "" to check for empty string for 'config'
lint.go:83:7:83:7: do not use trailing comma for args
main.go:122:16:122:16: do not use trailing comma for args
main.go:131:39:131:39: do not use trailing comma for args
Help
Usage: tint <command> [flags]

Flags:
  -h, --help             Show context-sensitive help.
      --config=STRING    Path to config file

Commands:
  lint [<files> ...] [flags]
    Lint files or folders

  validate-config [flags]
    Validate config file

Run "tint <command> --help" for more information on a command.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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