-
Notifications
You must be signed in to change notification settings - Fork 0
fix: S7735 — flip negated conditions (31 occurrences) #436
Copy link
Copy link
Closed
Labels
tech-debtCode quality and technical debtCode quality and technical debt
Description
SonarCloud S7735 — Unexpected negated condition
31 occurrences of if (!condition) { A } else { B } that should be flipped to if (condition) { B } else { A } for readability.
Affected files:
src/core/— indexing.ts, packs.ts, search.ts, graph.tssrc/cli/index.tssrc/connectors/— onenote.ts, obsidian.ts, notion.ts, confluence.ts, slack.tssrc/registry/sync.tssrc/mcp/server.ts- Various test files
Fix: Mechanical — swap the if/else branches and remove the negation.
Severity: MINOR | Effort: ~30min mechanical
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
tech-debtCode quality and technical debtCode quality and technical debt