enh(ci): fix Clang-Tidy warnings
Description
Clang-Tidy static analyzer added in !717 (merged) has discovered a few problems in Sight code. In order to improve Sight code quality, they must be fixed. We may then upgrade Clang-Tidy warnings to errors.
Proposal
Fix all Clang-Tidy warnings. At review time, we may discuss whether a check is relevant or must be disabled.