Files
openidea/plugins/official/checkstyle/plugin.toml
l0ng-ai f55cdcdc31 fix(plugins): hand plugins paths in one form on Windows (#1500)
* fix(plugins): hand plugins paths in one form on Windows

Plugins got the project root, editor path, provider documents, code action edits, vcs-status roots and find-files results as D:\… while event paths from the UI use /, so Checkstyle could not find the project of a saved file. The host now converts every path it hands to plugins with ipc_path::to_ipc.

* fix(checkstyle): match native Windows report paths

* test(plugins): use workbench IPC paths in host fixtures
2026-11-05 17:03:09 +08:00

35 lines
1.1 KiB
TOML

id = "openidea.checkstyle"
name = "Checkstyle"
version = "0.1.1"
description = "Checks Java files with Checkstyle when you save them: problems in the editor and the Problems view, quick fixes for tabs, trailing spaces and missing final newlines."
authors = ["OpenIDEA contributors"]
license = "Apache-2.0"
change-notes = "0.1.0 — first release: check on save (a newer save cancels the running check), Google style by default, quick fixes."
categories = ["linters"]
engines.openidea = "^1.0"
wasm = "dist/plugin.wasm"
activation = ["on-event:file-saved", "on-command:*"]
[capabilities]
# `process:checkstyle`: the `checkstyle` command line (e.g. `brew install checkstyle`).
required = ["project.read", "events", "storage", "process:checkstyle"]
[[contributes.providers]]
kinds = ["code-actions"]
languages = ["java"]
[[contributes.commands]]
id = "check"
title = "Checkstyle: Check Current File"
category = "Checkstyle"
[[contributes.commands]]
id = "use-sun"
title = "Checkstyle: Use Sun Checks"
category = "Checkstyle"
[[contributes.commands]]
id = "use-google"
title = "Checkstyle: Use Google Checks"
category = "Checkstyle"