Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Github Action for running C# style check via Uncrustify

License

Notifications You must be signed in to change notification settings

old-mibmo/actions-uncrustify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uncrustify C# Github Action

Note: fork of coleaeason/actions-uncrustify, changes it to format C# instead.

Runs an uncrustify config against C# implementation and header files in a given repo.

The script looks for the following file endings:

  • .cs

Only runs on files that have been added or modified in a given commit.

Example configurations

Basic:

on: [ pull_request ]

jobs:
  cpp_style_check:
    runs-on: ubuntu-latest
    name: Check C# Style
    steps:
    - name: Checkout this commit
      uses: actions/checkout@v2
    - name: Run style checks
      uses: mibmo/actions-uncrustify@v1

Use a specific configuration file via input:

on: [ pull_request ]

jobs:
  cpp_style_check:
    runs-on: ubuntu-latest
    name: Check C# Style
    steps:
    - name: Checkout this commit
      uses: actions/checkout@v2
    - name: Run style checks
      uses: mibmo/actions-uncrustify@v1
      with: 
        configPath: 'myConfig.cfg'

About

Github Action for running C# style check via Uncrustify

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 68.8%
  • Dockerfile 31.2%