Skip to content

xslint/xslint-jetbrains

Repository files navigation

xslint-jetbrains

DevOps By Rultor.com

build verify codecov Marketplace Downloads PDD status Hits-of-Code License

A JetBrains IDE plugin that brings xslint's XSL/XSLT linting — malformed XML, invalid XPath, and stylistic defects, with quick-fixes — to IntelliJ IDEA, WebStorm, PyCharm, and every other JetBrains IDE. It launches the xslint-lsp language server through LSP4IJ.

Requirements

  • A JetBrains IDE, build 2024.2 (242) or newer — any edition, including the free IntelliJ IDEA Community.
  • Node.js on your PATH — the plugin launches the bundled language server with it.

Install

Search xslint in Settings → Plugins → Marketplace and install it; LSP4IJ is pulled in automatically as a required dependency.

To install a specific build instead, download the plugin .zip from the latest release and use Settings → Plugins → ⚙ → Install Plugin from Disk….

Then open any .xsl/.xslt file — diagnostics and quick-fixes appear as you type.

How it works

The plugin bundles the xslint-lsp Node server and registers it with LSP4IJ for *.xsl/*.xslt files. LSP4IJ speaks the Language Server Protocol to it, so the diagnostics and fixes are identical to the command-line xslint and the VS Code extension — all three reuse the same engine.

Development

./gradlew buildPlugin      # build the distributable .zip (build/distributions)
./gradlew runIde           # launch a sandbox IDE with the plugin loaded
./gradlew test             # unit tests
./gradlew koverXmlReport   # coverage report (build/reports/kover)
./gradlew detekt           # Kotlin static analysis
./gradlew verifyPlugin     # the JetBrains Plugin Verifier

See CONTRIBUTING.md for more, and RELEASING.md for how releases work.

License

MIT

Releases

Packages

Contributors

Languages