Omegastick / pytorch-cpp-rl

PyTorch C++ Reinforcement Learning
MIT License
512 stars 86 forks source link

consider using CMake's built in cppcheck support #5

Closed billhoffman closed 5 years ago

billhoffman commented 5 years ago

https://github.com/Omegastick/pytorch-cpp-rl/blob/b4a244ebdff7bb7760d5c62f04e5bc93ecee619d/CMakeLists.txt#L12

You might want to consider using the built in cmake support for cppcheck: https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/

Omegastick commented 5 years ago

I was using that before, but I didn't like that it runs by default (it can take a while to run sometimes). Is there a way to use the built in support but still have running it be "opt-in"?

Omegastick commented 5 years ago

Gonna close this for now, because a seperate make check command is cleaner IMO.