{"id":19879245,"url":"https://github.com/donisaac/zlint","last_synced_at":"2026-04-18T20:06:15.651Z","repository":{"id":260374719,"uuid":"881112315","full_name":"DonIsaac/zlint","owner":"DonIsaac","description":"A linter for the Zig programming language","archived":false,"fork":false,"pushed_at":"2026-04-13T03:46:01.000Z","size":6002,"stargazers_count":265,"open_issues_count":24,"forks_count":14,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-13T04:06:17.158Z","etag":null,"topics":["linters","zig"],"latest_commit_sha":null,"homepage":"https://donisaac.github.io/zlint","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DonIsaac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-30T23:34:09.000Z","updated_at":"2026-04-13T02:51:17.000Z","dependencies_parsed_at":"2024-10-31T01:18:47.591Z","dependency_job_id":"96503e2a-f864-4eb2-91f0-9d220d2e0999","html_url":"https://github.com/DonIsaac/zlint","commit_stats":null,"previous_names":["donisaac/zlint"],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/DonIsaac/zlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonIsaac%2Fzlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonIsaac%2Fzlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonIsaac%2Fzlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonIsaac%2Fzlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DonIsaac","download_url":"https://codeload.github.com/DonIsaac/zlint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonIsaac%2Fzlint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: 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":["linters","zig"],"created_at":"2024-11-12T17:07:58.359Z","updated_at":"2026-04-18T20:06:15.638Z","avatar_url":"https://github.com/DonIsaac.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡️ ZLint\n\n[![codecov](https://codecov.io/gh/DonIsaac/zlint/graph/badge.svg?token=5bDT3yGZt8)](https://codecov.io/gh/DonIsaac/zlint)\n[![CI](https://github.com/DonIsaac/zlint/actions/workflows/ci.yaml/badge.svg)](https://github.com/DonIsaac/zlint/actions/workflows/ci.yaml)\n[![Discord](https://img.shields.io/static/v1?logo=discord\u0026label=discord\u0026message=Join\u0026color=blue)](https://discord.gg/UcB7HjJxcG)\n\nAn opinionated linter for the Zig programming language.\n\n## ✨ Features\n\n- 🔍 **Custom Analysis**. ZLint has its own semantic analyzer, heavily inspired\n  by [the Oxc project](https://github.com/oxc-project/oxc), that is completely\n  separate from the Zig compiler. This means that ZLint still checks and\n  understands code that may otherwise be ignored by Zig due to dead code\n  elimination.\n- ⚡️ **Fast**. Designed from the ground-up to be highly performant, ZLint\n  typically takes a few hundred milliseconds to lint large projects.\n- 💡 **Understandable**. Error messages are pretty, detailed, and easy to understand. \n  Most rules come with explanations on how to fix them and what _exactly_ is wrong.\n  ![diagnostic example](./docs/assets/diagnostic-example.jpg)\n\n## 📦 Installation\nPre-built binaries for Windows, MacOS, and Linux on x64 and aarch64 are\navailable [for each release](https://github.com/DonIsaac/zlint/releases/latest).\n\n### Linux/macOS\n```sh\ncurl -fsSL https://raw.githubusercontent.com/DonIsaac/zlint/refs/heads/main/tasks/install.sh | bash\n```\n\n### Windows\n```ps1\nInvoke-WebRequest -Uri \"https://raw.githubusercontent.com/DonIsaac/zlint/refs/heads/main/tasks/install.ps1\" | Invoke-Expression\n```\n\n### 🔨 Building from Source\n\nClone this repo and compile the project with Zig.\n\n```sh\nzig build --release=safe\n```\n\n## ⚡️ Lint Rules\n\nAll lints and what they do can be found [here](docs/rules/).\n\n## ⚙️ Configuration\n\nCreate a `zlint.json` file in the same directory as `build.zig`. This disables\nall default rules, only enabling the ones you choose.\n\n```json\n{\n  \"rules\": {\n    \"unsafe-undefined\": \"error\",\n    \"homeless-try\": \"warn\"\n  }\n}\n```\n\nZLint also supports [ESLint-like disable directives](https://eslint.org/docs/latest/use/configure/rules#comment-descriptions) to turn off some or all rules for a specific file.\n\n```zig\n// zlint-disable unsafe-undefined -- We need to come back and fix this later\nconst x: i32 = undefined;\n```\n\n## 🙋‍♂️ Contributing\n\nIf you have any rule ideas, please add them to the [rule ideas\nboard](https://github.com/DonIsaac/zlint/issues/3).\n\nInterested in contributing code? Check out the [contributing\nguide](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonisaac%2Fzlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonisaac%2Fzlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonisaac%2Fzlint/lists"}