File: linting.yml

package info (click to toggle)
purify 5.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 186,852 kB
  • sloc: cpp: 17,731; python: 510; xml: 182; makefile: 7; sh: 6
file content (29 lines) | stat: -rw-r--r-- 696 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Linting

on:
  push:
    branches: [ development ]
  pull_request:
    branches: [development]


jobs:
  linting:
    runs-on: ubuntu-22.04
    steps:
      - name: Checkout repo
        uses: actions/checkout@v4

      # Check code meets Google C++ style guide https://google.github.io/styleguide/cppguide.html
      - name: Run linting
        uses: DoozyX/clang-format-lint-action@v0.18.2
        with:
          source: '.'
          extensions: 'h,cc'
          clangFormatVersion: 16
          inplace: True

      - name: Report results
        run: |
          git diff --exit-code || (echo '## NOTE: your code is not linted properly - please commit the suggested changes'; false)