lalten / lemminx-pre-commit-hook

Pre-commit hook to format XML files with LemMinX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lemminx-pre-commit-hook

A pre-commit hook that uses pylspclient to ask the [LemMinX][lemminx] XML language server to format your files. This is the same formatter that is used in the RedHat XML extension for VS Code.

Usage

  - repo: https://github.com/lalten/lemminx-pre-commit-hook
    rev: v1.0.0
    hooks:
      - id: lemminx-format

Advanced Configuration

The default formatting options are documented in https://github.com/eclipse/lemminx/blob/main/docs/Configuration.md#formatting

You can pass args: [--settings, "settings.json"] to the hook to tune this.

About

Pre-commit hook to format XML files with LemMinX

License:MIT License


Languages

Language:Python 83.7%Language:Shell 11.7%Language:Dockerfile 4.5%