Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

chore: lint for tf/hcl blocks #135

Merged
merged 2 commits into from
Jan 27, 2024
Merged

chore: lint for tf/hcl blocks #135

merged 2 commits into from
Jan 27, 2024

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Jan 27, 2024

This PR lints that there is at least one tf block and no hcl blocks in the READMEs.

Ref: #134 (comment)

@mafredri mafredri self-assigned this Jan 27, 2024
@mafredri mafredri requested a review from matifali January 27, 2024 13:27
) => {
for (const token of tokens) {
// Check in-depth.
if (token.type === "list") {
Copy link
Member Author

Choose a reason for hiding this comment

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

Review: There may be other in-depth cases that are unhandled, but this was present in slackme README, at least.

@matifali
Copy link
Member

I also added this in #128
your choice :D

@mafredri
Copy link
Member Author

Feel free to import these changes into your PR if you want, there's a difference in that this PR lints all code blocks, even after h1 and within lists.

@matifali matifali merged commit a9a58bf into main Jan 27, 2024
@matifali matifali deleted the mafredri/lint-tf-hcl branch January 27, 2024 21:48
phorcys420 pushed a commit to phorcys420-contrib/coder-modules that referenced this pull request Jan 28, 2024
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants