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

Check spec for duplicate blocks and allow multiple $PLUGIN #1238

Merged
merged 8 commits into from
Sep 25, 2024
Merged

Conversation

kylebaron
Copy link
Collaborator

@kylebaron kylebaron commented Sep 23, 2024

This PR adds clarity around where we do and do not allow multiple blocks, adding tests for places where multiples aren't allowed.

We also now allow multiple $PLUGIN blocks. I don't anticipate this getting used a lot, but allowing multiples here, I think, adds clarity to the list of blocks where we don't allow multiples.

Note: we'll have to add $EVENT to the list where we don't allow multiples when that PR comes through.

#1204

@kylebaron kylebaron requested a review from kyleam September 24, 2024 01:04
@kylebaron kylebaron changed the title Audit multiple blocks and allow multiple $PLUGIN Check spec for duplicate blocks and allow multiple $PLUGIN Sep 24, 2024
Copy link
Contributor

@kyleam kyleam left a comment

Choose a reason for hiding this comment

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

Seems like a good idea to me.

@@ -82,6 +82,10 @@ block_list <- c("ENV", "PROB", "PARAM", "INIT",
"PREAMBLE", "PRED", "BLOCK", "TRANSIT", "YAML", "NMEXT",
"INPUT", "EVENT")

block_list_single <- c("MAIN", "SET", "GLOBAL", "PREAMBLE", "PRED", "PKMODEL",
"ENV", "CMTN", "INCLUDE", "NAMESPACE", "BLOCK",
"TRANSIT", "YAML", "EVENT")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added EVENT here after merging #1230

@kylebaron kylebaron merged commit 5f15a4a into main Sep 25, 2024
7 checks passed
@kylebaron kylebaron deleted the one-plugin branch September 25, 2024 12:31
@kylebaron kylebaron mentioned this pull request Oct 17, 2024
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.

2 participants