Repository navigation
chore: Address the top 3 clang-tidy warnings by count - #634
Merged
Merged
Conversation
beekld
marked this pull request as ready for review
October 26, 2026 19:27
kinyoklion
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the top 3 clang-tidy warnings by count.
Moves the clang-tidy check list from the cpp-linter workflow into
.clang-tidy, so all lint configuration lives in one file and per-directory overrides work.bugprone-unchecked-optional-access(509 warnings): Disabled, because every instance in production was a false positive.Future.cppcoreguidelines-avoid-magic-numbersandreadability-magic-numbers(495 warnings, the same finding under two names): Disabled, because the numbers it flags are already clear in context.16and Beast's11for HTTP/1.1.readability-identifier-length(372 warnings): Disabled, because short names are idiomatic where it flags them, and reviewers can judge the rest case by case.aandbin comparison operators, orffor a callable.opfor a clause operator ormsfor milliseconds..clang-tidy, but that doesn't seem worth the effort.Note
Overview
Centralizes clang-tidy configuration in
.clang-tidy(full check set plus disables forbugprone-unchecked-optional-access, magic-number rules, andreadability-identifier-length) and sets the cpp-linter workflow’stidy-checksto empty so CI uses that file and per-directory overrides work.Runtime hardening replaces unchecked
optional::value()on FDv2 server errors and polling bodies: FDv2 streaming/polling paths now guardserver_errorbefore reading payload ids, and client polling treats HTTP 200 with no body as interrupted instead of dereferencing the body. Evaluation refactorsMakeBigSegmentRefto take segment key and generation after the generation null-check, avoiding optional access through the wholeSegment.Reviewed by Cursor Bugbot for commit a7b4fb1. Bugbot is set up for automated code reviews on this repo. Configure here.