{"id":16406785,"url":"https://github.com/terror/flint","last_synced_at":"2025-03-23T05:31:22.551Z","repository":{"id":37246670,"uuid":"505210757","full_name":"terror/flint","owner":"terror","description":"Write custom, lightweight static checkers using the tree-sitter query language","archived":false,"fork":false,"pushed_at":"2024-06-24T15:29:13.000Z","size":34,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T22:03:19.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terror.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","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}},"created_at":"2022-06-19T20:18:50.000Z","updated_at":"2024-08-18T16:58:16.000Z","dependencies_parsed_at":"2024-10-11T06:21:10.159Z","dependency_job_id":null,"html_url":"https://github.com/terror/flint","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/terror%2Fflint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fflint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fflint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fflint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terror","download_url":"https://codeload.github.com/terror/flint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061382,"owners_count":20554563,"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":[],"created_at":"2024-10-11T06:10:58.376Z","updated_at":"2025-03-23T05:31:22.194Z","avatar_url":"https://github.com/terror.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003ca\u003e\u003cimg src=\"assets/logo.png\" height=\"40\" valign=\"top\" /\u003e\u003c/a\u003e flint\n\n**flint** is a tool that lets you write custom, lightweight static checkers\nusing the tree-sitter query language.\n\nCheckers are specified in [YAML](https://en.wikipedia.org/wiki/YAML) files that\nfollow a certain structure, for instance:\n\n```yaml\nname: Rust\n\nlanguage: rust\n\nrules:\n  env_string_literals:\n    severity: warn\n    category: style\n    message: Calls to (std::|)env::(var|remove_var) should not use string literals\n    query: |\n      ((call_expression\n        function: (_) @function\n        arguments: (arguments (string_literal))) @raise\n      (#match? @function \"(std::|)env::(var|remove_var)\"))\n    captures:\n      - raise\n```\n\nSee [examples/rust.yaml](https://github.com/terror/flint/blob/master/examples/rust.yaml)\nfor a more fully expanded example.\n\n### Installation\n\n```\ngit clone https://github.com/terror/flint.git\ncd flint\ncargo install --path .\n```\n\n### Prior Art\n\nThis tool wouldn't have been possible without [tree-sitter](https://tree-sitter.github.io/tree-sitter/), relying\non heavy use of the [rust bindings](https://docs.rs/tree-sitter/latest/tree_sitter/) as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Fflint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterror%2Fflint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Fflint/lists"}