{"id":15144314,"url":"https://github.com/meain/tint","last_synced_at":"2026-02-07T11:31:59.339Z","repository":{"id":230742074,"uuid":"777586685","full_name":"meain/tint","owner":"meain","description":"Tree-sitter powered linter","archived":false,"fork":false,"pushed_at":"2025-07-03T18:35:35.000Z","size":30,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T22:35:16.233Z","etag":null,"topics":["linter","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-26T06:08:18.000Z","updated_at":"2025-07-03T18:35:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8690b52-9cd0-4b6e-9782-6479f00e95c6","html_url":"https://github.com/meain/tint","commit_stats":null,"previous_names":["meain/tint"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meain/tint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meain%2Ftint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meain%2Ftint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meain%2Ftint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meain%2Ftint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meain","download_url":"https://codeload.github.com/meain/tint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meain%2Ftint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linter","tree-sitter"],"created_at":"2024-09-26T10:40:28.071Z","updated_at":"2026-02-07T11:31:59.317Z","avatar_url":"https://github.com/meain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tint\n\n\u003e **T**ree-sitter powered l**int**er\n\n- **Running**: `tint lint`\n- **Config**: Sample file available in `.tint.toml.sample` (default loc is `.tint.toml`)\n  For detailed instructions and examples on how to write a new rule, see [docs/writing_rules.md](docs/writing_rules.md).\n- **Output format**: `filename:start-line:start-col:end-line:end-col: message`\n\n## Configuration\n\nThe configuration file supports glob patterns for including and excluding files at both global and per-rule levels:\n\n```toml\n# Global include patterns - if specified, only files matching these patterns will be linted\ninclude = [\"**/*.go\", \"src/**/*.js\"]\n\n# Global exclude patterns - files matching these patterns will be excluded from linting\nexclude = [\"vendor/**\", \"node_modules/**\", \"**/testdata/**\"]\n\n[rules.my-rule]\nlanguage = \"go\"\nmessage = \"my rule message\"\nquery = \"...\"\n# Per-rule patterns - these are applied in addition to global patterns\ninclude = [\"**/*.go\"]     # Only apply this rule to Go files\nexclude = [\"**/config*\"]  # But not to config files\n\n[rules.test-specific-rule]\nlanguage = \"go\"\nmessage = \"test-specific rule\"\nquery = \"...\"\ninclude = [\"**/*_test.go\"]  # Only apply to test files\n```\n\n**Pattern matching behavior:**\n- **Global patterns** are applied first to determine which files to process\n- **Per-rule patterns** are then applied to determine if a specific rule should run on a file\n- If `include` patterns are provided (global or per-rule), only files matching at least one pattern will be processed\n- If `exclude` patterns are provided (global or per-rule), files matching any pattern will be skipped\n- The pattern resolution order is: Global include → Global exclude → Per-rule include → Per-rule exclude\n- Patterns support `**` for recursive directory matching and `*` for single-level wildcards\n- Both files and directories are checked against patterns (directories matching exclude patterns will be skipped entirely)\n\n### Installation\n\n```\ngo install github.com/meain/tint@latest\n```\n\n### Example output:\n\n```\nconfig.go:72:4:72:9: do not use \"\" to check for empty string for 'config'\nlint.go:83:7:83:7: do not use trailing comma for args\nmain.go:122:16:122:16: do not use trailing comma for args\nmain.go:131:39:131:39: do not use trailing comma for args\n```\n\n### Help\n\n```\nUsage: tint \u003ccommand\u003e [flags]\n\nFlags:\n  -h, --help             Show context-sensitive help.\n      --config=STRING    Path to config file\n\nCommands:\n  lint [\u003cfiles\u003e ...] [flags]\n    Lint files or folders\n\n  validate-config [flags]\n    Validate config file\n\nRun \"tint \u003ccommand\u003e --help\" for more information on a command.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeain%2Ftint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeain%2Ftint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeain%2Ftint/lists"}