Skip to content

Feat: Add Ruby analyzer #49

Description

@marco0560

Add Ruby analyzer

Summary

Introduce first-party Ruby support for Codira.

Motivation

Ruby remains widely used in web applications, developer tooling, automation, and infrastructure projects. The Ruby ecosystem, particularly Ruby on Rails, continues to represent a substantial body of open-source software.

Ruby's object model maps naturally onto Codira's symbol, reference, and call graph architecture.

Scope

Supported file extensions:

.rb
.rake
.gemspec

Supported constructs:

  • modules
  • classes
  • methods
  • constants
  • mixins
  • singleton methods
  • aliases
  • requires
  • includes
  • extends

Deliverables

New package:

codira-analyzer-ruby

Capabilities:

  • symbol extraction
  • call extraction
  • reference extraction
  • embedding payload generation
  • analyzer registration

Acceptance Criteria

  • deterministic output across runs
  • successful analysis of representative OSS repositories
  • plugin contract compliance
  • stable symbol extraction

Non-Goals

  • Rails-specific semantic analysis
  • runtime metaprogramming resolution
  • ActiveRecord relationship inference
  • dependency injection discovery

Architectural Constraints

  • deterministic traversal order
  • immutable analyzer outputs
  • no runtime network access
  • no analyzer-to-analyzer dependencies

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions