Skip to content

chore(tui): clear two CodeQL quality alerts in TextInputDialog - #12

Merged
jinyeow merged 3 commits into
mainfrom
chore/codeql-textinput-cleanup
Jul 18, 2026
Merged

jinyeow merged 3 commits into
mainfrom
chore/codeql-textinput-cleanup

Conversation

@jinyeow

@jinyeow jinyeow commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Clears the two actionable CodeQL quality alerts standing on main in the in-TUI text-input code (from #7). The other four open alerts were dismissed as false positives / intentional (crash-boundary catches per ADR 0013, a cast needed for overload resolution, an if/else clearer than a ternary).

Changes

  • cs/xmldoc/missing-summary (#193) — added the missing <summary> to the TextInputDialog constructor; its <param> docs were already present.
  • cs/complex-condition (#198) — extracted the newline-chord test into a private IsNewlineChord(key, baseCode) predicate, keeping the driver-quirk rationale on its doc comment.

No behaviour change. These files are untouched by #11 (PR-view performance), so they're split out as separate repo hygiene.

Verify

  • Release build: 0 warnings / 0 errors
  • dotnet test --filter "FullyQualifiedName~TextInputDialog|FullyQualifiedName~DetailDialogKeyDelivery" → 48 passing

Add the missing constructor <summary> (cs/xmldoc/missing-summary) and
extract the newline-chord test into a private IsNewlineChord predicate
(cs/complex-condition). No behaviour change.
Comment on lines +195 to +196
(baseCode == KeyCode.Enter && (key.IsCtrl || key.IsShift)) ||
(baseCode == KeyCode.J && key.IsCtrl);
jinyeow added 2 commits July 16, 2026 23:02
…t-cleanup

* origin/main:
  perf(pr): make PR review feel local — and fix four wrong-file bugs found on the way (#11)
  feat(tui): lazygit-style shell chrome — context keybar, showcmd, real tab strips (#27)
@jinyeow
jinyeow merged commit 1b3258c into main Jul 18, 2026
5 checks passed
@jinyeow
jinyeow deleted the chore/codeql-textinput-cleanup branch July 18, 2026 12:46
jinyeow added a commit that referenced this pull request Jul 18, 2026
* origin/main:
  chore(tui): clear two CodeQL quality alerts in TextInputDialog (#12)
  perf(pr): make PR review feel local — and fix four wrong-file bugs found on the way (#11)
  feat(tui): lazygit-style shell chrome — context keybar, showcmd, real tab strips (#27)

# Conflicts:
#	CHANGELOG.md
#	docs/adr/0008-client-side-diff-and-line-comments.md
#	src/Cobalt.Tui/App/CobaltShell.cs
#	src/Cobalt.Tui/App/CobaltTuiApp.cs
#	src/Cobalt.Tui/Screens/DiffListDataSource.cs
#	src/Cobalt.Tui/Screens/DiffReviewDialog.cs
#	src/Cobalt.Tui/ViewModels/PrDiffViewModel.cs
#	src/Cobalt.Tui/ViewModels/PrListViewModel.cs
#	tests/Cobalt.Core.Tests/Text/IntraLineDiffTests.cs
#	tests/Cobalt.Tui.Tests/Input/KeymapRouterTests.cs
#	tests/Cobalt.Tui.Tests/Screens/DiffListDataSourceTests.cs
jinyeow added a commit that referenced this pull request Jul 18, 2026
* origin/main:
  perf(round-2): diff-render, transport & input hot-path optimizations (#18)
  chore(tui): clear two CodeQL quality alerts in TextInputDialog (#12)
  perf(pr): make PR review feel local — and fix four wrong-file bugs found on the way (#11)
  feat(tui): lazygit-style shell chrome — context keybar, showcmd, real tab strips (#27)
  perf(tui): cut redundant redraws and diff re-tokenization (#9)
  docs: add CLAUDE.md project guidance for Claude Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants