-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Labels
Hacktoberfest25This issue is created as a part of Hacktoberfest 2025 programThis issue is created as a part of Hacktoberfest 2025 programgood first issueGood for newcomersGood for newcomers
Description
Description
The current parser for Ruby needs to be validated to ensure it correctly builds the code graph. This involves comparing the expected graph structure from the sample project with the actual output.
Steps to Reproduce
-
Clone the repository:
git clone https://github.com/Shashankss1205/CodeGraphContext.git cd CodeGraphContext
-
Set up the environment:
pip install -e ./ cgc setup
-
Navigate to the sample project:
cd tests/sample_project_ruby
-
Index the project:
cgc index
-
Visualize the graph:
cgc visualize
This will open a Neo4j browser instance. You can run queries to inspect the graph.
Task
- Thoroughly examine the source files in
tests/sample_project_ruby
. - Inspect the generated graph using the visualization tool. Check for:
- Correct identification of functions, classes, imports, and calls.
- Correct relationships (e.g.,
CALLS
,IMPORTS
,CONTAINS
,INHERITS
). - Any missing nodes or relationships.
- If discrepancies are found, update the language-specific parser logic in
src/codegraphcontext/tools/languages/ruby.py
. - After making corrections, delete the old graph and re-index to verify the fix.
cgc delete . cgc index
- Document your findings and the changes made in your pull request.
Relevant Files
- Sample Project:
tests/sample_project_ruby/
- Parser Logic:
src/codegraphcontext/tools/languages/ruby.py
Metadata
Metadata
Assignees
Labels
Hacktoberfest25This issue is created as a part of Hacktoberfest 2025 programThis issue is created as a part of Hacktoberfest 2025 programgood first issueGood for newcomersGood for newcomers