jkmathew/Swift Format Action

Runs Apple's swift-format in lint mode and reports violations as inline pull request review comments.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokenGitHub token used to post review comments. Defaults to the workflow token.no${{ github.token }}
swift-format-commandThe swift-format executable to invoke. Use 'swift-format' for the standalone binary or 'swift format' for the toolchain subcommand.noswift format
pathsNewline- or space-separated list of files/directories to lint. Defaults to the current directory.no.
configurationPath to a .swift-format configuration file. If omitted, swift-format searches upward from each linted file.no""
recursiveRecurse into directories listed in `paths`.notrue
strictTreat all lint findings as errors inside swift-format (passes --strict).nofalse
fail-on-violationsFail the action (non-zero exit) when any violation is found.notrue
namedescription
violation-countTotal number of violations reported by swift-format.