{"id":13600771,"url":"https://github.com/yaegassy/coc-psalm","last_synced_at":"2025-03-09T13:30:44.885Z","repository":{"id":39591787,"uuid":"330880215","full_name":"yaegassy/coc-psalm","owner":"yaegassy","description":"coc.nvim extension for \"Psalm\" language server","archived":false,"fork":false,"pushed_at":"2023-05-07T12:36:19.000Z","size":488,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:46:43.000Z","etag":null,"topics":["coc","coc-extensions","coc-nvim","lsp","neovim","php","psalm","vim"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/coc-psalm","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/yaegassy.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}},"created_at":"2021-01-19T06:02:19.000Z","updated_at":"2023-01-29T21:58:52.000Z","dependencies_parsed_at":"2024-09-21T13:02:53.088Z","dependency_job_id":"b8f2531c-089c-4841-a9c8-71374f4efc79","html_url":"https://github.com/yaegassy/coc-psalm","commit_stats":{"total_commits":125,"total_committers":2,"mean_commits":62.5,"dds":0.008000000000000007,"last_synced_commit":"e62b3d1a5cf3dcad7c613d6c3ab647bef005d1c9"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-psalm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-psalm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-psalm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-psalm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-psalm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241773236,"owners_count":20018065,"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":["coc","coc-extensions","coc-nvim","lsp","neovim","php","psalm","vim"],"created_at":"2024-08-01T18:00:48.329Z","updated_at":"2025-03-09T13:30:44.445Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["Language Support"],"sub_categories":[],"readme":"# coc-psalm\n\n[coc.nvim](https://github.com/neoclide/coc.nvim) extension for [Psalm](https://psalm.dev/) language server.\n\n\"Psalm\" started as a static analysis tool, but now it also has the features of a [Language Server](https://psalm.dev/docs/running_psalm/language_server/).\n\n\u003cimg width=\"780\" alt=\"coc-psalm-screenshot\" src=\"https://user-images.githubusercontent.com/188642/105113456-53e03280-5b08-11eb-8fad-5a2bb0aa33a0.png\"\u003e\n\n## Install\n\n```\n:CocInstall coc-psalm\n```\n\n## Note\n\nInstall `psalm` in your project.\n\n```\ncomposer require --dev vimeo/psalm\n```\n\n**Required:** The project must contain a `psalm.xml` or `psalm.xml.dist` file as a condition for starting \"coc-psalm\".\n\n```sh\n./vendor/bin/psalm --init\n```\n\n## Configuration options\n\n- `psalm.enable`: Enable coc-psalm extension, default: `true`\n- `psalm.disableCompletion`: Disable completion only, default: `false`\n- `psalm.disableDefinition`: Disable definition only, default: `false`\n- `psalm.disableProgressOnInitialization`: Disable ProgressOnInitialization only, default: `false`\n- `psalm.phpExecutablePath`: Optional, defaults to searching for \"php\". The path to a PHP 7.0+ executable to use to execute the Psalm server. The PHP 7.0+ installation should preferably include and enable the PHP module `pcntl`. (Modifying requires restart), default: `null`\n- `psalm.phpExecutableArgs`: Optional (Advanced), default is '-dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0'.  Additional PHP executable CLI arguments to use, default: `[\"-dxdebug.remote_autostart=0\", \"-dxdebug.remote_enable=0\", \"-dxdebug_profiler_enable=0\"]`\n- `psalm.psalmScriptPath`: Optional (Advanced). If provided, this overrides the Psalm server script to use, e.g. `vendor/bin/psalm-language-server`, `$HOME/path/to/psalm-language-server`, `~/path/to/psalm-language-server` (Modifying requires restart), default: `null`\n- `psalm.psalmScriptExtraArgs`: Optional (Advanced). Additional arguments to the Psalm language server. (Modifying requires restart), default: `[]`\n- `psalm.enableUseIniDefaults`: Enable this to use PHP-provided ini defaults for memory and error display. (Modifying requires restart), default: `false`\n- `psalm.enableDebugLog`: Enable this to print messages, default: `false`\n- `psalm.analyzedFileExtensions`: A list of file extensions to request Psalm to analyze. By default, this only includes 'php' (Modifying requires restart), default: `[{ \"scheme\": \"file\", \"language\": \"php\" }, { \"scheme\": \"untitled\", \"language\": \"php\" }]`\n- `psalm.unusedVariableDetection`: Enable this to enable unused variable and parameter detection, default: `false`\n- `psalm.configPaths`: A list of files to checkup for psalm configuration (relative to the workspace directory), default: `[\"psalm.xml\", \"psalm.xml.dist\"]`\n- `psalm.trace.server`: Traces the communication between coc.nvim and the Psalm language server, valid options `[\"off\", \"messages\", \"verbose\"]`, default: `off`\n\n## Commands\n\n- `psalm.restartPsalmServer`: Restart Psalm Language server\n- `psalm.analyzeWorkSpace`: Analyze Workspace\n\n## Code Actions\n\n### Example key mapping (Code Action related)\n\n```vim\nnmap \u003csilent\u003e ga \u003cPlug\u003e(coc-codeaction-line)\n```\n\n**Usage**:\n\nIn the line with diagnostic message, enter the mapped key (e.g. `ga`) and you will see a list of code actions that can be performed.\n\n### Code Actions (Client side):\n\n- `Show issue for https://psalm.dev/xxx`: Open the issue url in your browser\n- `Suppress all for this line`\n\n### Code Actions (Server side):\n\n- `Suppress XXX for this line`\n\n## \"psalm.xml\" or \"psalm.xml.dist\" completion and linting and more...\n\nTo use it, you need to install [coc-xml](https://github.com/fannheyward/coc-xml).\n\n## Thanks\n\n- [vimeo/psalm](https://github.com/vimeo/psalm)\n- [psalm/psalm-vscode-plugin](https://github.com/psalm/psalm-vscode-plugin)\n\n## License\n\nMIT\n\n---\n\n\u003e This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-psalm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-psalm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-psalm/lists"}