{"id":16539996,"url":"https://github.com/colinkiama/vala-lint-vscode","last_synced_at":"2025-10-17T07:54:18.097Z","repository":{"id":107025149,"uuid":"559646321","full_name":"colinkiama/vala-lint-vscode","owner":"colinkiama","description":"vs-code-linter extension that adds linting support for Vala in Visual Studio Code","archived":false,"fork":false,"pushed_at":"2024-07-31T21:50:49.000Z","size":131,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-08T20:21:53.189Z","etag":null,"topics":["extension","language-tool","language-tools","lint","lint-tool","linter","vala","vala-lint","vs-code","vs-code-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/colinkiama.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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-10-30T18:50:33.000Z","updated_at":"2024-09-21T07:09:27.000Z","dependencies_parsed_at":"2024-10-11T18:51:22.383Z","dependency_job_id":null,"html_url":"https://github.com/colinkiama/vala-lint-vscode","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/colinkiama%2Fvala-lint-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinkiama%2Fvala-lint-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinkiama%2Fvala-lint-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinkiama%2Fvala-lint-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colinkiama","download_url":"https://codeload.github.com/colinkiama/vala-lint-vscode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinkiama%2Fvala-lint-vscode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259231167,"owners_count":22825526,"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":["extension","language-tool","language-tools","lint","lint-tool","linter","vala","vala-lint","vs-code","vs-code-extension"],"created_at":"2024-10-11T18:51:18.376Z","updated_at":"2025-10-17T07:54:18.049Z","avatar_url":"https://github.com/colinkiama.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vala-Lint For Visual Studio Code Extension\n\nThis extension adds Vala language support to the [vscode-linter extension](https://github.com/fnando/vscode-linter) using [vala-lint](https://github.com/vala-lang/vala-lint).\n\n## Installation\n\nVisual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=ColinKiama.linter-vala\n\nManual Instructions: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#packaging-extensions\n\n## Requirements\n\n- [vscode-linter extension](https://github.com/fnando/vscode-linter)\n- [vala-lint linter program](https://github.com/vala-lang/vala-lint)\n\n## Setup Guide\n\n\n### Install Vala Lint\n\nFirst, you need to install the [vala-lint](https://github.com/vala-lang/vala-lint) linter program. It's recommeded that you install it using [meson](https://github.com/mesonbuild/meson) and [ninja](https://github.com/ninja-build/ninja).\n\nTo verify that you've installed the Vala Lint program, in your terminal, enter the following command:\n\n```sh\nio.elementary.vala-lint --version\n```\n\nThe terminal should then output the following line:\n\n```\nVersion: version_number\n```\n\nIf you don't see the line above then you did not install the Vala lint program properly. Please ensure that the directory of `io.elementary.vala-lint` has been added to the PATH environment variable. `io.elementary.vala-lint` is what the Visual Studio Extension is looking for.\n\n### Install The Vala-Lint Visual Studio Code Extension\n\nYou can either:\n- Search for \"Vala-Lint\" in the Extensions section of the Visual Studio Code side bar\n- Follow the installation instructions from the extension's page in the Visual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=ColinKiama.linter-vala\n- Install the extension manually from the source code: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#packaging-extensions\n\nWhen you install the \"Vala-Lint\" extension, you will also be installing the \"vscode-linter\" extension which is what the Vala-Lint extension uses to help implement its functionality.\n\n### Verify That The Vala-Lint Visual Studio Code Extension Is Working \n\nTo verify that the extension is working:\n1. Open a Vala source code file in Visual Studio Code (Has `.vala` file extension)\n2. Open the Output View (Toggle with: `CTRL + K`, `CTRL + H`)\n3. Swith the selected item in the dropdown to \"linter\"\n\nNow you should see text like the following (Note: in this example, the file that is opened is called \"Result.vala\"):\n\n```\nVala-Lint's command took 14ms\nLanguage id: vala\nMatching linters: [\n  \"vala\"\n]\nReading from cache? false\nLinter config: {\n  \"capabilities\": [],\n  \"command\": [\n    \"io.elementary.vala-lint\",\n    \"--print-end\",\n    [\n      \"$config\",\n      \"--config\",\n      \"$config\"\n    ],\n    \"$file\"\n  ],\n  \"configFiles\": [\n    \"vala-lint.conf\",\n    \".vala-lint.conf\"\n  ],\n  \"enabled\": true,\n  \"languages\": [\n    \"vala\"\n  ],\n  \"name\": \"Vala-Lint\",\n  \"url\": \"https://github.com/vala-lang/vala-lint\",\n  \"importPath\": \"/home/username/.vscode/extensions/colinkiama.linter-vala-1.0.0/dist/extension.js\"\n}\nArgs: {\n  \"$rootDir\": \"/home/username/sources/astral\",\n  \"$file\": \"/home/username/sources/astral/subprojects/result/lib/Result.vala\",\n  \"$extension\": \".vala\",\n  \"$extensionBare\": \"vala\",\n  \"$config\": \"\",\n  \"$debug\": false,\n  \"$lint\": true,\n  \"$language\": \"vala\",\n  \"$shebang\": \"\"\n}\n{\n  \"rootDir\": \"/home/username/sources/astral\",\n  \"configFile\": \"\",\n  \"command\": [\n    \"io.elementary.vala-lint\",\n    \"--print-end\",\n    \"/home/username/sources/astral/subprojects/result/lib/Result.vala\"\n  ]\n}\n```\nIf you don't have an output like what is listed above then you probably have not installed the extension properly.\n\nIf you did not install the Vala Lint program properly, you may see a message like this in the Output View with \"linter\" selected in the dropdown:\n\n```\nSearched for any of io.elementary.vala-lint; couldn't be found within $PATH: [\n    \"/home/username/.local/bin\",\n    \"...\",\n]\n```\n\nAs we've stated above, ensure that directory where `io.elementary.vala-lint` is located is available on the $PATH enviornment variable.\n\n## Contributing\n\nRefer to [vscode-linter's Creating Linters Guide](https://github.com/fnando/vscode-linter/blob/main/docs/creating-linters.md) and the [vala-lint linter program source code](https://github.com/vala-lang/vala-lint).\n\nIt's recommended that you create an issue or check if it already exists first before starting any work.\n\nCreate a pull request when you are ready to submit your changes to the project. Your changes should go into the `main` branch.\n\n**Enjoy!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinkiama%2Fvala-lint-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinkiama%2Fvala-lint-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinkiama%2Fvala-lint-vscode/lists"}