Skip to content

Add Kotlin and Swift language support (Tier 2)#2

Merged
montfort merged 1 commit intomainfrom
add-kotlin-swift-language-support
Mar 31, 2026
Merged

Add Kotlin and Swift language support (Tier 2)#2
montfort merged 1 commit intomainfrom
add-kotlin-swift-language-support

Conversation

@montfort
Copy link
Copy Markdown
Contributor

Summary

  • Implement KotlinProfile (tree-sitter-kotlin-ng 1.1) and SwiftProfile (tree-sitter-swift 0.7) as the first Tier 2 languages
  • Expand coverage from 10 to 12 languages with full metric support (cognitive, cyclomatic, SLOC)
  • 177 tests passing (20 new + 4 updated), clippy clean

Changes

  • Profiles: src/languages/kotlin.rs, src/languages/swift.rs
  • Core: Language enum variants, extension mappings, feature flags
  • Tests: 7 fixtures per language, 10 integration tests per language, feature flag & detection tests
  • DevTrail: AILOG-2026-03-30-003

Known limitation

Recursion detection is not supported for Kotlin/Swift — their tree-sitter grammars lack a named "function" field on call_expression nodes.

Test plan

  • cargo test --features all — 177 tests pass
  • cargo test (default features) — existing tests unaffected
  • cargo clippy --features all — zero warnings
  • cargo check --features kotlin / cargo check --features swift — independent compilation

🤖 Generated with Claude Code

Implement LanguageProfile for Kotlin (tree-sitter-kotlin-ng 1.1) and
Swift (tree-sitter-swift 0.7) as the first Tier 2 languages, expanding
coverage from 10 to 12 languages with full metric support (cognitive,
cyclomatic, SLOC).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 31, 2026

CLA assistant check
All committers have signed the CLA.

@montfort montfort merged commit 72e1370 into main Mar 31, 2026
4 of 5 checks passed
@montfort montfort mentioned this pull request Mar 31, 2026
1 task
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