Skip to content

Commit

Permalink
fix: only include cpp files in clang-tidy and ignore directories
Browse files Browse the repository at this point in the history
  • Loading branch information
JoHaHu committed May 10, 2024
1 parent d19f0fc commit 4ee17f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- run: sudo apt-get install libxerces-c-dev
- run: cmake -DCMAKE_TOOLCHAIN_FILE=./toolchains/test.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' -S $(pwd) -B $(pwd)/build
- run: cd ./build && make
- run: clang-tidy src/* -p ./build/compile_commands.json
- run: clang-tidy src/*.{cpp,h} -p ./build/compile_commands.json
2 changes: 1 addition & 1 deletion src/FileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "FileReader.h"

#include <math.h>
#include <cmath>

#include <cstdlib>
#include <fstream>
Expand Down

0 comments on commit 4ee17f1

Please sign in to comment.