{"id":13595973,"url":"https://github.com/purcell/sqlint","last_synced_at":"2025-05-14T05:11:32.156Z","repository":{"id":35042465,"uuid":"39165112","full_name":"purcell/sqlint","owner":"purcell","description":"Simple SQL linter supporting ANSI and PostgreSQL syntaxes","archived":false,"fork":false,"pushed_at":"2025-04-04T14:06:31.000Z","size":69,"stargazers_count":429,"open_issues_count":1,"forks_count":26,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-11T05:06:07.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/purcell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"patreon":"sanityinc"}},"created_at":"2015-07-15T22:56:20.000Z","updated_at":"2025-04-21T11:38:47.000Z","dependencies_parsed_at":"2024-01-23T11:02:41.769Z","dependency_job_id":"4367f594-bd31-4a67-957f-5cf5e8d86f25","html_url":"https://github.com/purcell/sqlint","commit_stats":{"total_commits":88,"total_committers":9,"mean_commits":9.777777777777779,"dds":"0.38636363636363635","last_synced_commit":"d6cf1ed801b095d2b5d3fa42f6ef70b7e55ee318"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fsqlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fsqlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fsqlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Fsqlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purcell","download_url":"https://codeload.github.com/purcell/sqlint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076850,"owners_count":22010611,"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-08-01T16:02:02.962Z","updated_at":"2025-05-14T05:11:27.133Z","avatar_url":"https://github.com/purcell.png","language":"Ruby","readme":"[![Build Status](https://github.com/purcell/sqlint/actions/workflows/ci.yml/badge.svg)](https://github.com/purcell/sqlint/actions/workflows/ci.yml)\n[ ![](https://img.shields.io/gem/v/sqlint.svg)](https://rubygems.org/gems/sqlint)\n[ ![](https://img.shields.io/gem/dt/sqlint.svg)](https://rubygems.org/gems/sqlint)\n\u003ca href=\"https://www.patreon.com/sanityinc\"\u003e\u003cimg alt=\"Support me\" src=\"https://img.shields.io/badge/Support%20Me-%F0%9F%92%97-ff69b4.svg\"\u003e\u003c/a\u003e\n\n## SQLint - a simple SQL linter\n\n### About\n\nSQLint is a simple command-line linter which reads your SQL files and\nreports any syntax errors or warnings it finds.\n\nAt this stage, SQLint checks SQL against the ANSI syntax, and uses the\nPostgreSQL SQL parser to achieve this. SQLint does not have support\nfor non-standard SQL variants (e.g. MySQL), but contributions are welcome.\n\n### Installation\n\nSQLint is currently provided as a ruby gem: you can install it using the following command:\n\n```\ngem install sqlint\n```\n\n### Usage\n\nTo check the syntax of a file containing SQL, simply pass the filename to `sqlint` on the command line:\n\n```\nsqlint filename.sql\n```\n\nIn the absence of a filename, `sqlint` reads from standard input.\n\n### Editor plugins\n\nSupport for `sqlint` is provided for the following editors:\n\n- Emacs, via [Flycheck](https://github.com/flycheck/flycheck)\n- VIM, via [Syntastic](https://github.com/scrooloose/syntastic), [Neomake](https://github.com/neomake/neomake) or [ALE](https://github.com/w0rp/ale)\n- SublimeText, via [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter3/)\n\n\n### Using with pre-commit\n\nAdd this to your `.pre-commit-hooks.yaml`:\n\n```yaml\n-   repo: https://github.com/purcell/sqlint\n    rev: master\n    hooks:\n    -   id: sqlint\n```\n\n### Authors\n\nThis software was written by\n[Steve Purcell](https://github.com/purcell) and\n[Kieran Trezona-le Comte](https://github.com/trezona-lecomte).\n\n### License and copyright\n\nCopyright 2015-2018 Powershop NZ Ltd.\nCopyright 2018-2021 Steve Purcell.\nMIT license.\n\n\u003chr\u003e\n\n[💝 Support this project and my other Open Source work via Patreon](https://www.patreon.com/sanityinc)\n\n[💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)\n\n[✍ sanityinc.com](http://www.sanityinc.com/)\n","funding_links":["https://patreon.com/sanityinc","https://www.patreon.com/sanityinc"],"categories":["Ruby","Programming Languages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurcell%2Fsqlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurcell%2Fsqlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurcell%2Fsqlint/lists"}