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

Use Go parser to identify blocks in Go files #44

Merged
merged 60 commits into from
Nov 2, 2021

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented Feb 5, 2021

Use a Go parser to find Terraform blocks in Go acceptance test files. Identifies Go files by checking if the file name ends in .go and contains a line matching package [a-zA-Z0-9_]+\n.

Terraform blocks are identified as any string that contains a resource, data source,variable, or output declaration.

Copy link
Owner

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

LGTM ⏫

@katbyte katbyte added this to the v0.3.0 milestone Sep 16, 2021
@katbyte katbyte merged commit 7a42aba into katbyte:main Nov 2, 2021
@katbyte katbyte modified the milestones: v0.3.0, v0.4.0 Mar 22, 2022
@gdavison gdavison deleted the use-parsers branch May 5, 2022 19:06
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.

None yet

2 participants