{"id":13626582,"url":"https://github.com/nektro/ziglint","last_synced_at":"2025-03-17T09:30:30.095Z","repository":{"id":44375993,"uuid":"398948466","full_name":"nektro/ziglint","owner":"nektro","description":"A linting suite for Zig","archived":false,"fork":false,"pushed_at":"2023-11-25T18:38:12.000Z","size":92,"stargazers_count":96,"open_issues_count":21,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T10:24:53.732Z","etag":null,"topics":["lint","linter","zig"],"latest_commit_sha":null,"homepage":"","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/nektro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2021-08-23T02:16:09.000Z","updated_at":"2025-03-15T14:57:24.000Z","dependencies_parsed_at":"2023-11-25T19:39:18.559Z","dependency_job_id":null,"html_url":"https://github.com/nektro/ziglint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fziglint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fziglint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fziglint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fziglint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nektro","download_url":"https://codeload.github.com/nektro/ziglint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244008872,"owners_count":20382924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["lint","linter","zig"],"created_at":"2024-08-01T21:02:24.266Z","updated_at":"2025-03-17T09:30:29.797Z","avatar_url":"https://github.com/nektro.png","language":"Zig","readme":"# ziglint\n![loc](https://sloc.xyz/github/nektro/ziglint)\n[![license](https://img.shields.io/github/license/nektro/ziglint.svg)](https://github.com/nektro/ziglint/blob/master/LICENSE)\n\nA linting suite for Zig.\n\n## Usage\n```\n$ ./ziglint\n```\n\nThis will search the current directory for `.zig` files and lint them against the various tests in the suite. See the [bad/](./bad/) folder for examples of the caught lints.\n\n## Installation\nThis requires having [Zig](https://ziglang.org) and [Zigmod](https://github.com/nektro/zigmod) installed.\n\n- https://ziglang.org/download/\n- https://github.com/nektro/zigmod/releases\n\n```sh\n$ zigmod aq install 1/nektro/ziglint\n```\n\n## Built With\n- Zig master `0.11.0`\n- [Zigmod](https://github.com/nektro/zigmod) package manager\n- See [`zig.mod`](./zig.mod)\n\n# Available Rules\n- `dupe_import`: warn against duplicate `@import` calls with the same value\n- `todo`: list all `// TODO` comments\n- `file_as_struct`: checks for file name capitalization in the presence of top level fields\n- `unused_decl`: checks for unused container level `const`/`var`s\n\nWant to propose more? Open an issue here on Github.\n\n## Using in Github Actions\n```yml\njobs:\n  lint:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Setup Zig\n        uses: goto-bus-stop/setup-zig@v1\n        with:\n          version: \"0.11.0\"\n\n      - uses: nektro/actions-setup-zigmod@v1\n      - run: zigmod aq install 1/nektro/ziglint\n      - run: ~/.zigmod/bin/ziglint -skip todo\n```\n\n## License\nMIT\n","funding_links":[],"categories":["Zig","Tools"],"sub_categories":["Linters"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnektro%2Fziglint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnektro%2Fziglint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnektro%2Fziglint/lists"}