maxisam/dotnet-format-plus

Run dotnet format & JSCPD and optionally apply any fixes

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
authTokenThe GITHUB_TOKEN secretyes
actioncheck|fix. The primary action `dotnet format` should perform. `check` for only checking, `fix` will also actually fix the formatting errors in the files.nofix
projectFileNameThe solution or project file to operate on.no""
onlyChangedFilesOnly changed files in the current pull request should be formatted. Only works when the trigger is a pull request.nofalse
failFastThe job should fail if there's a formatting error.notrue
workspaceThe solution or project file to operate on.yes
nugetConfigPathThe path to the NuGet configuration file from workspace. e.g. `NuGet.config`no""
severityLevel <error|info|warn> Fixes styles according to formatting rules.nowarn
logLevelSets the logging verbosity of the dotnet format process. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]nodetailed
problemMatcherEnabledEnable the problem matcher for dotnet format.notrue
skipCommitSkip commiting the changes to the repository.nofalse
commitUserNameName used for the commit usernogithub-actions
commitUserEmailEmail address used for the commit usernobot@users.noreply.github.com
commitMessageMessage used for the commitno🤖 refactor: Apply dotnet-format changes
dotnetFormatConfigPathPath to dotnet format config fileno.dotnet-format.json
jscpdCheckRun jscpd to check for code duplicationnofalse
jscpdConfigPathPath to jscpd config fileno.jscpd.json
jscpdCheckAsErrorFail the build if jscpd finds any code duplicationnofalse
postNewCommentPost a new comment on the pull request or update an existing one with the resultsnofalse
jscpdReportArtifactNameName of the artifact containing the JSCPD reportnojscpd-report
dotnetFormatReportArtifactNameName of the artifact containing the dotnet format reportnodotnet-format-report
namedescription
hasChangesA value indicating if any files were formatted. If `action` is `check` we will inspect the exit code of `dotnet format` to be <> 0. If `action` is `fix` we see if there are changes to files with `git status -s`.
hasDuplicatesA value indicating if any files were duplicated when `jscpdCheck` is `true`.