File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,12 @@ valgrind: check
3030 valgrind --leak-check=full --error-exitcode=1 ./test-program
3131
3232lint :
33- cpplint --filter=-legal/copyright --root=$(CURDIR ) include/restclient-cpp/* .h source/* .cc
33+ # Filter reasons:
34+ # legal/copyright: it's just maintenance overhead to have license headers
35+ # in all files
36+ # whitespace/indent_namespace: it makes code less readable if indentations
37+ # in namespaces are not allowed
38+ cpplint --filter=" -legal/copyright,-whitespace/indent_namespace" --root=$(CURDIR ) include/restclient-cpp/* .h source/* .cc
3439
3540docker-services :
3641 [ -n " $$ (docker ps --quiet --filter name=restclient-cpp-httpbin)" ] || \
Original file line number Diff line number Diff line change 88
99#include < curl/curl.h>
1010
11+ #include < algorithm>
1112#include < cstring>
12- #include < string>
1313#include < iostream>
1414#include < map>
1515#include < stdexcept>
16+ #include < string>
1617#include < utility>
1718
1819#include " restclient-cpp/restclient.h"
@@ -378,7 +379,7 @@ RestClient::Connection::performCurlRequest(const std::string& uri) {
378379 *
379380 * @param uri URI to query
380381 * @param ret Reference to the response struct that should be filled
381- *
382+ *
382383 * @return reference to response struct for chaining
383384 */
384385RestClient::Response*
@@ -571,7 +572,7 @@ RestClient::Connection::get(const std::string& url) {
571572 *
572573 * @param url to query
573574 * @param response struct
574- *
575+ *
575576 * @return response struct ref for chaining
576577 */
577578RestClient::Response*
Original file line number Diff line number Diff line change 77#include " restclient-cpp/helpers.h"
88
99#include < cstring>
10+ #include < string>
1011
1112#include " restclient-cpp/restclient.h"
1213
Original file line number Diff line number Diff line change 1717#if __cplusplus >= 201402L
1818#include < memory>
1919#endif
20+ #include < string>
21+
2022
2123#include " restclient-cpp/version.h"
2224#include " restclient-cpp/connection.h"
You can’t perform that action at this time.
0 commit comments