diff --git a/.clang-tidy b/.clang-tidy index e156a4a..f48b448 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,7 +1,6 @@ Checks: -*, readability-*, - -readability-container-size-empty, -readability-else-after-return, -readability-implicit-bool-conversion, -readability-function-cognitive-complexity, diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index 2c31cd9..f5bb232 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -525,7 +525,7 @@ public: stream << mNames[0] << ": required."; throw std::runtime_error(stream.str()); } - if (mIsUsed && mIsRequired && mValues.size() == 0) { + if (mIsUsed && mIsRequired && mValues.empty()) { std::stringstream stream; stream << mUsedName << ": no value provided."; throw std::runtime_error(stream.str());