C/C++リントアクション



マイワークフロー
C/C++コードをclang tidyとclang形式を統合してスレッドコメントや注釈の形式で提供するフィードバックを収集するためのGithubアクション.

提出カテゴリ
メンテーナは必要である

YAMLファイルまたはコードへのリンク

shenxianpeng / cpp-linter-action
改善されたC/C++のリントのアクション:自動的にチェック&プルの変更をclang形式&clang tidyとの変更を引くし、不完全な結果とのコメントを投稿します.

C/C++リントアクション





C/C++コードをclang tidyとclang形式を統合してスレッドコメントや注釈の形式で提供するフィードバックを収集するためのGithubアクション.
用途
プロジェクト内の新しいGithub actionワークフローを作成します.
ファイルの内容は次の形式にする必要があります.
# Workflow syntax:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: cpp-linter

on:
  push:
    paths-ignore: "docs/**"
  pull_request:
    paths-ignore: "docs/**"

jobs:
  cpp-linter:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: shenxianpeng/[email protected]
        id: linter
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          style: file

      - name: Fail fast?!
        if: steps.linter.outputs.checks-failed > 0
        run: |
          echo "Some files failed the linting checks!"
        # for actual deployment
        # run: exit 1

Optional Inputs

style

  • Description: The style rules to use. Set this…

cpp-linter.yml

name: cpp-linter

on:
  push:
    paths-ignore: "docs/**"
  pull_request:
    paths-ignore: "docs/**"

jobs:
  cpp-linter:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: shenxianpeng/[email protected]
        id: linter
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          style: file

      - name: Fail fast?!
        if: steps.linter.outputs.checks-failed > 0
        run: |
          echo "Some files failed the linting checks!"
        # for actual deployment
        # run: exit 1
.github/workflows/cpp-linter.yml
追加情報


スレッドコメント

注釈