-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlint.sh
executable file
·23 lines (16 loc) · 984 Bytes
/
lint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# TODO(GRO4T): integrate linting directly into Bazel
set -o errexit
echo "============================== cpplint (headers) ============================="
cpplint include/*.h
echo "============================== cppcheck (headers) ============================="
cppcheck --language=c++ --std=c++20 include/*.h
echo "============================== clang-tidy (headers) ==========================="
clang-tidy include/*.h -- -std=c++20 -x c++ -Wno-pragma-once-outside-header
echo "============================== cpplint (sources) =============================="
cpplint src/*.cc
echo "============================== cppcheck (sources) ============================="
cppcheck --language=c++ --std=c++20 src/*.cc
echo "============================== clang-tidy (sources) ==========================="
clang-tidy src/*.cc -- -Iinclude/ -Ibazel-bin/sfml/include -std=c++20 -Wall -Wextra
echo "================================= Finished ==================================="