gnuradio / clang-format-lint-action

This action checks if the source code matches the .clang-format file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clang-format lint action

This action checks if the source code matches the .clang-format file.

Inputs

source

Where the source files are located.
Default: '.' (current folder)
Example: './src'

exclude

What folder should be excluded from format checking.
Default: 'none'
Example: './third_party'

extensions

What filename extensions should be used for format checking.
Default: 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx'
Example: 'cpp,h'

clangFormatVersion

What clang-format version should be used.
Available version are from 5 to 9.
Default: 9
Example: 9

Example usage

name: test-clang-format

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - uses: DoozyX/clang-format-lint-action@v0.5
      with:
        source: '.'
        exclude: './third_party'
        extensions: 'h,cpp'
        clangFormatVersion: 9

About

This action checks if the source code matches the .clang-format file.

License:MIT License


Languages

Language:Python 96.8%Language:Dockerfile 2.0%Language:Shell 1.1%