Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
navigation-2

GitHub Action

dotnet-format-plus

v0.5.0

dotnet-format-plus

navigation-2

dotnet-format-plus

Run dotnet format & JSCPD and optionally apply any fixes

Installation

Copy and paste the following snippet into your .yml file.

              

- name: dotnet-format-plus

uses: maxisam/dotnet-format-plus@v0.5.0

Learn more about this action in maxisam/dotnet-format-plus

Choose a version

dotnet format plus

Yet another dotnet format. It combines dotnet format with jscpd to provide a single action to run both. The main goal is to provide a way to handle dotnet format in a mono repo. You can have an action before this and create a matrix of projects to run this action on. And each project can have its own dotnet format config file.

Features

  • Dotnet format
  • Mono repo support by using .dotnet-format.json (yml) config file to configure dotnet format
  • Problem Matcher for dotnet format (only works when verbosity is set to detailed)
  • JSCPD, can be configured with .jscpd.json (yml) file
  • Generate reports as GitHub Action artifact
  • Generate reports as comment on PR
  • (optional) commit changes

Usage

Currently this action is focused on running on PRs. example:

Aknowledgements

This project is based on / inspired by lots of other projects, including but not limited to: