{"id":17302739,"url":"https://github.com/rnpnr/vis-lint","last_synced_at":"2026-02-16T19:41:13.806Z","repository":{"id":156456669,"uuid":"627546752","full_name":"rnpnr/vis-lint","owner":"rnpnr","description":"vis plugin for linting code","archived":false,"fork":false,"pushed_at":"2025-01-05T22:09:44.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T12:30:29.951Z","etag":null,"topics":["linting","plugin","vis"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rnpnr.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-13T17:34:40.000Z","updated_at":"2025-02-10T12:30:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"7643fc05-61d5-4ea3-9a35-5912f3867bc4","html_url":"https://github.com/rnpnr/vis-lint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rnpnr/vis-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnpnr%2Fvis-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnpnr%2Fvis-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnpnr%2Fvis-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnpnr%2Fvis-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rnpnr","download_url":"https://codeload.github.com/rnpnr/vis-lint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnpnr%2Fvis-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29516192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"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":["linting","plugin","vis"],"created_at":"2024-10-15T11:48:30.828Z","updated_at":"2026-02-16T19:41:13.768Z","avatar_url":"https://github.com/rnpnr.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vis-lint\n\nLint the currently open file in [Vis](https://github.com/martanne/vis)\nand display the output in the message window.\n\n## Installation\n\nClone the repo to `$VIS_PATH/plugins` and then its sufficient to include\nthe following in your `visrc.lua`:\n\n\trequire(\"plugins/vis-lint\")\n\nSee [Plugins](https://github.com/martanne/vis/wiki/Plugins) on the Vis\nwiki for further details.\n\n## Usage\n\nThe following functions and commands are exported:\n\n| Name                 | Description                                      |\n|----------------------|--------------------------------------------------|\n| `lint`               | Run to lint the current file (range if selected) |\n| `fix`                | Run to fix the current file (range if selected)  |\n| `.lint(file, range)` | `lint` command accessible from Lua               |\n| `.fix(file, range)`  | `fix` command accessible from Lua                |\n\nFor example type the following into the Vis command prompt:\n\n\t:lint\n\n## Configuration\n\n### Adding A Tool\n\nAdditional tools for fixing and linting can be added as follows:\n\n\tlocal lint = require(\"plugins/vis-lint\")\n\ttable.insert(lint.linters[\"python\"], \"pylint --from-stdin stdin_from_vis\")\n\ttable.insert(lint.linters[\"python\"], \"mypy /dev/stdin\")\n\n#### Tools must read from `stdin` and output to `stdout`!\n\nSome programs, like the above examples, may need some non standard flags.\nYou can also try using `-` or `/dev/stdin` as the input parameter.\n\n### Overriding The Defaults\n\nThe defaults can be also be overridden:\n\n\tlint.fixers[\"lua\"] = { \"cat\" }\n\nNote that an equivalent in this case is just:\n\n\tlint.fixers[\"lua\"] = {}\n\n### Adding New Filetypes\n\nA new filetype can be added as follows (`awkfix` is a hypothetical\n`awk` fixer):\n\n\tlint.fixers[\"awk\"] = { \"awkfix\" }\n\nNote: if a default doesn't exist feel free to submit a patch adding it!\n\n### Running Fixers Before Writing\n\nThe fixers can be run before saving a file using Vis' events:\n\n\tvis.events.subscribe(vis.events.FILE_SAVE_PRE, lint.fix)\n\nNote that if any fixer fails the file won't save (unless `:w!` was used).\n\n### Silencing Logging Or Logging To File\n\nThe logging function is stored as a configuration variable and can be\nmodified as follows:\n\n\tlint.logger = function(str, level)\n\t\tif level == lint.log.INFO then\n\t\t\tvis:info(str)\n\t\telse\n\t\t\tlocal fp = io.open(\"log.txt\", \"*a\")\n\t\t\tfp:write(str .. \"\\n\")\n\t\t\tfp:close()\n\t\tend\n\tend\n\nThe sent message levels are `INFO`, `OUTPUT`, and `ERROR`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnpnr%2Fvis-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frnpnr%2Fvis-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnpnr%2Fvis-lint/lists"}