Skip to content

Commit

Permalink
add clang-tidy GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Feb 21, 2024
1 parent 5af4400 commit e137f19
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/clang-tidy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: clang-tidy-review

on:
push:
branches: ['**']
pull_request:
branches: ['**']

permissions: read-all

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Optionally generate compile_commands.json

- uses: ZedThree/[email protected]
id: review
with:
split_workflow: true

# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/[email protected]
id: upload-review

# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1
2 changes: 1 addition & 1 deletion src/ds/d500/d500-device.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2022 Intel Corporation. All Rights Reserved.

#include "metadata-parser.h"
#include <metadata-parser.h>
#include "metadata.h"
#include <src/backend.h>
#include <src/platform/platform-utils.h>
Expand Down
2 changes: 1 addition & 1 deletion src/ds/d500/d500-factory.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2022 Intel Corporation. All Rights Reserved.

#include "device.h"
#include <device.h>
#include "image.h"
#include "metadata-parser.h"

Expand Down
2 changes: 1 addition & 1 deletion src/ds/d500/d500-options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.


#include "d500-options.h"
#include "d500-options.h"

namespace librealsense
{
Expand Down

0 comments on commit e137f19

Please sign in to comment.