Skip to content

Feature: Language-specific analyzers - Dart/Flutter, Svelte/TS, Go #233

Closed

Description

@ajianaz

Feature: Language-Specific Analyzers (Dart/Flutter, Svelte/TS, Go)

Problem

Cora treats all code as generic text. Language-specific patterns (Flutter widget lifecycle, Svelte reactive statements, Go error handling) are not recognized, leading to generic review feedback.

Proposed Solution

Add language-specific rule analyzers that understand language idioms and anti-patterns.

Priority Languages

Language Why Projects
Dart/Flutter Widget lifecycle, state management patterns Usago
TypeScript/Svelte Reactive declarations, store patterns Bond, BOND
Go Error handling, concurrency patterns Mikrodius, GLM proxy

Implementation

Add to LLM system prompt per detected language:

fn language_context(file: &str, content: &str) -> String {
    match detect_language(file) {
        Lang::Dart => DART_RULES,    // Widget lifecycle, async patterns
        Lang::Svelte => SVELTE_RULES, // Reactive stores, SSR considerations
        Lang::Go => GO_RULES,         // Error wrapping, goroutine safety
        _ => String::new(),
    }
}

Not a static analyzer — enriched prompts for LLM to understand language-specific context.

Why v0.5

Acceptance Criteria

  • Dart/Flutter: detect widget lifecycle issues, state management anti-patterns
  • Svelte/TS: detect reactive declaration issues, store misuse
  • Go: detect unwrapped errors, goroutine leak patterns
  • Language detection based on file extension
  • Config toggle per language: languages.dart.enabled = true
  • Each language adds <500ms to review time

Activity

  1. reopened this on Jun 9, 2026
  2. added
    v0.5
    scope:core
    next-pick
    on Jun 9, 2026
  3. ajianaz commented on Jun 10, 2026

    @ajianaz
    CollaboratorAuthor

    ✅ Implemented in PR #241. 6 languages: Dart/Flutter, Svelte, TypeScript, Go, Rust, Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenext-pickpriority:mediumscope:corev0.5

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions