https://github.com/meain/tint
Tree-sitter powered linter
https://github.com/meain/tint
linter tree-sitter
Last synced: 5 months ago
JSON representation
Tree-sitter powered linter
- Host: GitHub
- URL: https://github.com/meain/tint
- Owner: meain
- License: apache-2.0
- Created: 2024-03-26T06:08:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-01T07:38:20.000Z (6 months ago)
- Last Synced: 2025-01-01T08:23:50.222Z (6 months ago)
- Topics: linter, tree-sitter
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tint
> **T**ree-sitter powered l**int**er
- **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](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 [flags]Flags:
-h, --help Show context-sensitive help.
--config=STRING Path to config fileCommands:
lint [ ...] [flags]
Lint files or foldersvalidate-config [flags]
Validate config fileRun "tint --help" for more information on a command.
```