elide-dev/Elide Format

Check source formatting using Elide (google-java-format and ktfmt)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
formatterFormatter to run: javaformat, ktfmt, or allnoall
modeMode: check (default) or writenocheck
filesFiles or directories to check (space or newline-separated paths). When omitted, sources are auto-detected by extension (*.java for javaformat, *.kt for ktfmt). no
working-directoryDirectory to run formatters fromno${{ github.workspace }}
excludeFiles or patterns to exclude (space or newline-separated). Plain paths are matched as path segments; glob patterns (* and **) are also supported. no
gjf-argsExtra arguments for google-java-format (appended after --)no
ktfmt-argsExtra arguments for ktfmt (appended after --)no
include-ktsInclude .kts (Kotlin script) files when running ktfmtnofalse
fail-on-errorFail the workflow when formatting check failsnotrue
telemetryEnable anonymous error telemetrynotrue
output-modeOutput mode after the formatter runs: none (default), file (print affected file paths), diff (print unified diffs, check mode only), or command (print a fix command). nonone
output-mode-diffsWhen output-mode is diff, limit the number of files whose diffs are printed. If the number of affected files exceeds this limit, falls back to listing file paths instead. Must be a positive integer. no
output-mode-commandWhen output-mode is command, print this string instead of a generated elide command. Intended for projects that have a pre-defined formatter command (e.g. a Makefile target). no
namedescription
resultCheck result: success or failure
files-checkedNumber of files checked
files-failedNewline-separated list of files affected by the formatter: files that failed the format check (check mode) or were reformatted (write mode). Only set when output-mode is file.