@seadub/clang-format-lint

Validate and/or fix formatting of files via clang-format

Usage no npm install needed!

<script type="module">
  import seadubClangFormatLint from 'https://cdn.skypack.dev/@seadub/clang-format-lint';
</script>

README

clang-format-lint

A very simple wrapper around the clang-format npm package/binary.

Intended to be used to either validate existing files, or automatically fix the formatting on them.

Usage:

npx clang-format-lint [--fix] [--exec-limit [limit]] glob[ glob]*

e.g. To check if your source files match your formatting rules:

npx clang-format-lint android/src/**/*.java

e.g. To ensure your source files match your formatting rules:

npx clang-format-lint --fix android/src/**/*.java