You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cpplint produced 69 findings across 36 files on the lint lane. Drain
them by category so the lane goes green; no behaviour change.
Categories addressed:
* Missing copyright header (legal/copyright) — drop the standard
19-line LGPL block at the top of examples/banned_ip_log.cpp,
examples/early_413.cpp, examples/per_route_auth.cpp.
* runtime/int on libcurl-using tests — libcurl's CURLINFO_RESPONSE_CODE
and CURLOPT_POSTFIELDSIZE traffic in `long`, so `long http_code`,
`long status`, and `static_cast<long>(body.size())` cannot
portably be replaced with sized-int aliases without breaking the
curl API contract. Add `// NOLINT(runtime/int)` to match the
existing pattern in test/integ/authentication.cpp.
* build/include_what_you_use IWYU adds — explicit `#include <utility>`
/ `<memory>` / `<string>` / `<vector>` in: examples/
digest_authentication.cpp, src/detail/webserver_callbacks_lifecycle.cpp,
src/httpserver/detail/route_tier.hpp, test/bench_warm_path.cpp,
test/integ/hooks_connection_lifecycle.cpp,
test/integ/hooks_per_route_early_413_per_endpoint.cpp,
test/unit/hooks_accept_ctx_shape_test.cpp,
test/v1_baseline/measure_v1_get_headers.cpp.
* build/include_what_you_use on class-body include fragments — the
three split-out class-body headers (webserver_routes.hpp,
webserver_websocket.hpp, webserver_impl_dispatch.hpp,
http_request_auth.hpp) cannot carry their own `#include` directives:
they are textually pasted inside an open class body. Add
`// NOLINTNEXTLINE(build/include_what_you_use)` on the affected
declarations with a comment pointing at the parent header that
owns the transitive includes.
* build/include_order — reorder system / library includes so curl,
microhttpd, gnutls headers come immediately after the matching
`<c headers>` block and before the C++ standard library: applied
to src/detail/http_request_impl_tls.cpp,
src/detail/http_request_impl.cpp, src/http_request_auth.cpp.
* whitespace/indent_namespace — collapse the multi-line
`inline constexpr std::string_view INTERNAL_SERVER_ERROR` onto a
single line in src/httpserver/constants.hpp; reflow the
`args_map_t` alias in src/detail/http_request_impl.cpp so the
continuation lines are at column 4, not column 33 (cpplint reads
alignment-padded continuation lines as namespace-scope indent).
* whitespace/braces — collapse the standalone `{` after the
LT_BEGIN_AUTO_TEST(...) macro call in
test/integ/hooks_per_route_resource_destroyed_first.cpp:74 onto
the previous line. Macro expansion is unchanged: the macro itself
ends with `{`, so the source now reads `) {`-and-the-nested-`{`.
* whitespace/comments — bump the trailing comment in
src/detail/webserver_routes.cpp:191 to two spaces before `//`.
* whitespace/newline — split the one-line `try { ... } catch (...) {}`
bodies in test/integ/hooks_per_route_early_413_per_endpoint.cpp
across three lines so cpplint's controlled-statement check is
satisfied.
* build/namespaces_headers — drop the anonymous namespace from
test/integ/test_utils.hpp; the file is included by multiple TUs,
so an unnamed namespace at file scope leaks distinct ODR-violating
symbols. Pull the `using test_utils::as_shared;` to file scope
with an explicit NOLINT-and-comment instead.
* build/include_subdir — silence the no-directory include flag on
test/bench_get_headers.cpp's same-directory bench_harness.hpp.
0 commit comments