Files
flatbuffers/.github/workflows/cpp-linter.yml
Derek Bailey a63fa51a15 Create cpp-linter.yml (#7208)
* Create cpp-linter.yml

* Update cpp-linter.yml

* Update cpp-linter.yml

* Update bfbs_gen_lua.cpp

make some ill-formed edits to see if the linter flags them.

* Update cpp-linter.yml

Configured tidy checks

* Update cpp-linter.yml

Build project before linting to get compile_commands.json

* Update cpp-linter.yml

* Update cpp-linter.yml

* Update cpp-linter.yml

* Update cpp-linter.yml

* Update cpp-linter.yml

* lines only
2022-04-06 14:18:36 -07:00

36 lines
806 B
YAML

name: cpp-linter
permissions: read-all
on:
pull_request:
branches:
- master
paths-ignore: "tests/**"
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shenxianpeng/cpp-linter-action@master
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: 12
style: file
lines-changed-only: true
tidy-checks: >-
bugprone-*,
performance-*,
readability-*,
portability-*,
modernize-*,
clang-analyzer-*,
cppcoreguidelines-*,
-modernize-use-trailing-return-type
- name: Check Result
if: steps.linter.outputs.checks-failed > 0
run: exit 1