Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for cypher versions in semantic analysis-linting #328

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anderson4j
Copy link
Collaborator

Now if defaultLanguage-field is defined on a database, this language version will be used by default in the analysis, otherwise cypher 5 is used.
If the version is defined in-query, like CYPHER 25 ... this version will overwrite the default version, if it is given in an array of supported versions we store ourselves (currently just 5).

Cypher 25 is not currently supported, so unsure how we want testing here. Guess I could add Cypher 25 to the array of supported versions and create an assert that we get an error now, and then transfer to test that both 5 and 25 work in-query later?

@anderson4j anderson4j added depends on semantic analysis Depends on the semantic analysis being wired into the project errors highlighting syntactic, semantic and deprecation warnings / errors labels Jan 13, 2025
Copy link

changeset-bot bot commented Jan 13, 2025

⚠️ No Changeset found

Latest commit: 1f76037

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends on semantic analysis Depends on the semantic analysis being wired into the project errors highlighting syntactic, semantic and deprecation warnings / errors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant