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
30
30
valgrind --leak-check=full --error-exitcode=1 ./test-program
31
31
32
32
lint :
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
34
39
35
40
docker-services :
36
41
[ -n " $$ (docker ps --quiet --filter name=restclient-cpp-httpbin)" ] || \
Original file line number Diff line number Diff line change 8
8
9
9
#include < curl/curl.h>
10
10
11
+ #include < algorithm>
11
12
#include < cstring>
12
- #include < string>
13
13
#include < iostream>
14
14
#include < map>
15
15
#include < stdexcept>
16
+ #include < string>
16
17
#include < utility>
17
18
18
19
#include " restclient-cpp/restclient.h"
@@ -378,7 +379,7 @@ RestClient::Connection::performCurlRequest(const std::string& uri) {
378
379
*
379
380
* @param uri URI to query
380
381
* @param ret Reference to the response struct that should be filled
381
- *
382
+ *
382
383
* @return reference to response struct for chaining
383
384
*/
384
385
RestClient::Response*
@@ -571,7 +572,7 @@ RestClient::Connection::get(const std::string& url) {
571
572
*
572
573
* @param url to query
573
574
* @param response struct
574
- *
575
+ *
575
576
* @return response struct ref for chaining
576
577
*/
577
578
RestClient::Response*
Original file line number Diff line number Diff line change 7
7
#include " restclient-cpp/helpers.h"
8
8
9
9
#include < cstring>
10
+ #include < string>
10
11
11
12
#include " restclient-cpp/restclient.h"
12
13
Original file line number Diff line number Diff line change 17
17
#if __cplusplus >= 201402L
18
18
#include < memory>
19
19
#endif
20
+ #include < string>
21
+
20
22
21
23
#include " restclient-cpp/version.h"
22
24
#include " restclient-cpp/connection.h"
You can’t perform that action at this time.
0 commit comments