add in graph database support by boyter · Pull Request #654 · boyter/scc
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for two graph database query languages: Cypher (used by Neo4j) and Gremlin (used by Apache TinkerPop). The implementation includes language definitions with appropriate comment syntax, complexity checks for query operations, file extensions, and quote handling.
Key changes:
- Added Cypher language support with
.cypherand.cqlextensions - Added Gremlin language support with
.gremlinextension - Included example files demonstrating the complexity patterns for both languages
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test-all.sh | Added 'Cypher' and 'Gremlin' to the list of languages for testing |
| processor/constants.go | Added language definitions for Cypher and Gremlin with their respective comment syntax, complexity checks, and quote configurations |
| languages.json | Added JSON configurations for both Cypher and Gremlin languages |
| examples/language/gremlin.gremlin | Added example Gremlin query file demonstrating various complexity patterns |
| examples/language/cypher.cypher | Added example Cypher query file demonstrating various complexity patterns |
| SCC-OUTPUT-REPORT.html | Updated report statistics reflecting the addition of new language definitions |
| LANGUAGES.md | Added Cypher and Gremlin to the documentation of supported languages |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.