What changed, and why it matters
This commit only adds a comment telling a code-quality tool (clang-tidy) to ignore a stylistic warning about an if/else branch that looks identical to another. It does not change any executable code, logic, or security behavior in the BitBox02 firmware.
No action required. This is a non-functional lint suppression.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds a single NOLINTNEXTLINE(bugprone-branch-clone) annotation in src/ui/components/button.c. The warning being suppressed is a lint-level style check, not a runtime bug. No instructions, control flow, memory handling, or cryptographic operations are modified. There is no security-relevant change.
Changed components
src/ui/components/button.cInspect captured patch +1 / −0
diff --git a/src/ui/components/button.c b/src/ui/components/button.c
index 307110d..2cd64da 100644
--- a/src/ui/components/button.c
+++ b/src/ui/components/button.c
@@ -60,6 +60,7 @@ static void _on_event(const event_t* event, component_t* component)
{
button_data_t* data = (button_data_t*)component->data;
if (event->id == EVENT_SHORT_TAP && event->data.source == data->location) {
+ // NOLINTNEXTLINE(bugprone-branch-clone)
if (data->span_over_slider) {
data->callback(component);
} else if (
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.