diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f8eeb2..8fbf7da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,3 +9,11 @@ jobs: with: submodules: recursive - run: scripts/ci-test.sh + check-format: + name: Formatted with `make format` + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - run: make check-format diff --git a/Makefile b/Makefile index 3bdedf3..f5f45b0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +SHELL = /bin/bash .SUFFIXES: .PHONY: all @@ -19,6 +20,10 @@ clean: format: clang-format --style=file -i src/**.cpp src/**.hpp +.PHONY: check-format +check-format: + diff -u <(cat src/**.cpp src/**.hpp) <(clang-format --style=file src/**.cpp src/**.hpp) + build/client: build/Makefile (cd build; make -j) diff --git a/src/WebVizConstants.hpp b/src/WebVizConstants.hpp index 558ceb3..d14b361 100644 --- a/src/WebVizConstants.hpp +++ b/src/WebVizConstants.hpp @@ -37,7 +37,8 @@ static const std::string odometry_topic = "odometry/raw"; static const std::string lidar_2d_topic = "velodyne_2dscan"; /** - * @brief (sensor_msgs/CompressedImage) prefix for a Compressed Image from a stereo camera. + * @brief (sensor_msgs/CompressedImage) prefix for a Compressed Image from a + * stereo camera. */ static const std::string compressed_image_prefix = "image_compressed/";