Skip to content

fix(lint): use String#endsWith in the Swift extractor - #846

Merged
jeff-r2026 merged 1 commit into
mainfrom
fix/oxlint-swift-endswith
Sep 26, 2026
Merged

jeff-r2026 merged 1 commit into
mainfrom
fix/oxlint-swift-endswith

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • npm run lint (oxlint --deny-warnings) in the worktree — 0 warnings
  • npx vitest run src/__tests__/swift-extractor.test.ts src/__tests__/ast-extract-swift.test.ts — 15 passed
  • Confirm GitHub Actions CI on this PR is green (this is the check that is failing on main)

Made with Cursor

oxlint --deny-warnings flags /Error$/ as a warning, so every main CI run has failed since Swift support landed.

Co-authored-by: Cursor <[email protected]>
@github-actions

Copy link
Copy Markdown

Code Erosion Report

Informational — never blocks the merge. scb-check==0.2.0 SlopCodeBench metrics; method & caveats in docs/ci-code-erosion.md.

Metric Value Human band Agent band Reading
Verbosity* 0.080 0.15 0.33 human
Erosion 0.661 0.31 0.68 agent
Cognitive erosion 0.858 – – –

Scanned 271 files / 49909 SLOC · high-CC functions 307/3687

* On TypeScript, verbosity is partial and the bands are Python-calibrated.

Rule hits (TS verbosity layer)

Standalone ast-grep, separate from the number above.

Rule Hits
unnecessary-else-after-return 28
empty-catch-block 5
redundant-ternary-same 1

34 distinct lines flagged across src/.

@jeff-r2026
jeff-r2026 merged commit e0bf2e9 into main Sep 26, 2026
7 checks passed
@jeff-r2026
jeff-r2026 deleted the fix/oxlint-swift-endswith branch September 26, 2026 13:59
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
oxlint --deny-warnings flags /Error$/ as a warning, so every main CI run has failed since Swift support landed.

Co-authored-by: Cursor <[email protected]>
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.

1 participant