ruby / ruby/rbs

Specify the type of evaluation for files

Open
#708 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2.2k
Forks
256
Avg merge
6d 17h
Merged PRs (30d)
37

Description

Related to https://github.com/ruby/rbs/issues/654

It would be good to be able to specify the type of evaluation for a file itself. Cases where this would be useful:

  • Gemfile
  • Rake tasks
  • Steepfile
  • Any other DSL case (maybe RSpec?)

Currently if I try type check these files they fail.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the related issue #654 and then trace how RBS currently handles type checking for Gemfile, Rake tasks, and Steepfile. Done means a file's evaluation type can be specified and these DSL cases no longer fail type checking.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.