[Bug] Ruby files named `*.rake`, `*.jbuilder`, `*.gemspec`, `Rakefile` and `Gemfile` are not parsed as Ruby
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
Summary
The Ruby language spec claims only the .rb extension, plus config.ru by name, so rake tasks, jbuilder views, gemspecs, Rakefile and Gemfile are skipped as an unknown type and never parsed.
packages/core/src/repowise/core/ingestion/languages/specs/ruby.py:18-21
extensions=frozenset({".rb"}),
special_filenames=frozenset({"config.ru"}),
Mechanism
- Extension and filename lookup both come from the registry (
ingestion/languages/registry.py:76-88), built from the specs, so the spec is the only place to change. special_filenamesis the precedent:config.ruhere,artisaninspecs/php.py:17.code_origin.pyalready classesRakefileas tooling and.gemspecas build, so origin needs no change.
Repro
lib/tasks/cleanup.rake module Helper; def self.go; 1; end; end, plus a rake namespace
Rakefile
app/views/api/show.json.jbuilder
Gemfile
fixture.gemspec
config.ru
app/models/account.rb
repowise init --mode fast --no-prose on main, then the file nodes in graph_nodes:
['app/models/account.rb', 'config.ru']
None of the .rake, .jbuilder, .gemspec, Rakefile or Gemfile files appear.
Impact
Rake tasks and jbuilder views are invisible to the graph, dead code and health, and constants defined in a .rake file cannot be resolved.
Done looks like
- Add
.rake,.jbuilderand.gemspectoextensions, andRakefile,Gemfile,Capfile,GuardfileandVagrantfiletospecial_filenames. Gemfilestays inmanifest_files; confirm the gem resolver (ingestion/resolvers/ruby.py) still reads it and it is not reported as an unreachable file.code_originfor these files is unchanged.- Good first issue: one spec and a registry test.
Tests
tests/unit/ingestion/test_language_capabilities.py: each name and extension maps to ruby. tests/unit/ingestion/parser/test_ruby.py: a .rake file yields its Helper module symbol.
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 756
- Avg merge
- 21h 5m
- Merged PRs (30d)
- 797
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from repowise-dev/repowise
-
[Bug] Elixir `.formatter.exs`, `.credo.exs`, `config/*.exs` and `priv/**/*.exs` are reported as unreachable filesPossibly taken @ZYZ666-RGB claimed this 1 day ago. Openbug good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#6296 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Coverage stack detection omits Swift, Dart, and Scala, falling through to UNKNOWN in evidence setupPossibly taken @RishabhIIITD claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
repowise-dev/repowise#5838 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] PR-mined decisions store the decision sentence again as their rationalePossibly taken @suyashgitt claimed this 11 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#5702 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] CICS CSD `DEFINE _PGMLIST` startup programs (`_PGMPH`) are not rootsPossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#4477 ·
Maintainers usually reply within 1 day
-
[Bug] COBOL listing directives EJECT, SKIP1/SKIP2/SKIP3 and TITLE fail to parse and drop the rest of the filePossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
repowise-dev/repowise#4474 ·
Maintainers usually reply within 1 day
All issues in repowise-dev/repowise
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
meetecho/juturna_nodes#43 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TigreGotico/text2spoken#726 ·
Maintainers usually reply within 1 day
-
bug dependencies
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
nolte/claude-shared#822 ·
Maintainers usually reply within 1 day
-
`RequestHandler.build_request_kwargs` drops empty request bodies such as `{}` or `""`Possibly taken @abhirajadhikary06 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
typesense/typesense-python#170 ·
Maintainers usually reply within 1 day
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NousResearch/hermes-official-plugins#538 ·
Maintainers usually reply within 3 days