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

Add strict mode #88

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Add strict mode #88

merged 1 commit into from
Aug 25, 2020

Conversation

szeiger
Copy link
Collaborator

@szeiger szeiger commented Aug 25, 2020

This makes adjacent object literals an error. Fixes #87

This makes adjacent object literals an error. Fixes databricks#87
Copy link
Contributor

@lihaoyi-databricks lihaoyi-databricks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm feel free to merge when ready

@szeiger szeiger merged commit dd62b1d into databricks:master Aug 25, 2020
@iuliand-db
Copy link
Contributor

I wonder if this isn't too strict, perhaps we should disallow it only inside lists? Wondering how well this would fare on our existing body of jsonnet. :)

@lihaoyi-databricks
Copy link
Contributor

@iuliand-db I'd say this is probably OK, as we have the flexibility to adjust our existing body of Jsonnet accordingly. The golden ZZZ files should make it pretty easy to notice all the places where we need to tweak, and it should be easy to add a + in the cases where it's intentional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disallow adjacent object literals
3 participants