Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📝 WalkthroughWalkthroughThis update makes two targeted documentation and metadata corrections. First, it fixes the deprecated environment variable name associated with the Changes
Possibly related PRs
Suggested reviewers
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
hclfmt hclvalidate validate-inputs as deprecated commands (minor fixes)
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
internal/strict/controls/controls.go (2)
63-63: Fix capitalization and punctuation in error string
Lint ruleerror-stringsrequires error messages to start lowercase and omit trailing punctuation. Update theErrorfield accordingly.
Example diff:- Error: errors.Errorf("Reading inputs from dependencies is no longer supported. To acquire values from dependencies, use outputs."), + Error: errors.Errorf("reading inputs from dependencies is no longer supported; use outputs"),🧰 Tools
🪛 GitHub Actions: Strict Lint
[error] 63-63: revive: error-strings: error strings should not be capitalized or end with punctuation or a newline
71-71: Fix capitalization and punctuation in error string
Apply the same lint rule to the bootstrap error message.
Example diff:- Error: errors.Errorf("Bootstrap backend for remote state by default is no longer supported. Use `--backend-bootstrap` flag instead."), + Error: errors.Errorf("bootstrap backend for remote state by default is no longer supported; use `--backend-bootstrap` flag instead"),🧰 Tools
🪛 GitHub Actions: Strict Lint
[error] 71-71: revive: error-strings: error strings should not be capitalized or end with punctuation or a newline
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
cli/commands/hcl/format/cli.go(1 hunks)internal/strict/controls/controls.go(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.go`: Review the Go code for quality and correctness. Make sure that the Go code follows best practices, is performant, and is easy to understand and maintain.
**/*.go: Review the Go code for quality and correctness. Make sure that the Go code follows best practices, is performant, and is easy to understand and maintain.
cli/commands/hcl/format/cli.gointernal/strict/controls/controls.go
🪛 GitHub Actions: Strict Lint
internal/strict/controls/controls.go
[error] 63-63: revive: error-strings: error strings should not be capitalized or end with punctuation or a newline
[error] 71-71: revive: error-strings: error strings should not be capitalized or end with punctuation or a newline
⏰ Context from checks skipped due to timeout of 90000ms (7)
- GitHub Check: Build (linux/386)
- GitHub Check: Build (linux/amd64)
- GitHub Check: Test (ubuntu)
- GitHub Check: Test (macos)
- GitHub Check: Test (windows)
- GitHub Check: build-and-test
- GitHub Check: Pull Request has non-contributor approval
🔇 Additional comments (3)
internal/strict/controls/controls.go (2)
47-48: Clarify CLI redesign control comment
The comment now correctly scopesCLIRedesignto deprecations from the CLI Redesign, improving precision without affecting behavior.
105-107: Update CLI redesign control description
TheDescriptionfield now explicitly states it's for commands deprecated as part of the CLI Redesign, aligning the documentation with the intended constraint.cli/commands/hcl/format/cli.go (1)
73-75: Correct deprecated env var for stdin flag
The deprecated environment variable and names for thestdinflag have been updated from"hclfmt-diff"to"hclfmt-stdin", ensuring the legacyTG_HCLFMT_STDINand its flag names are properly recognized. This aligns with the intended deprecation policy.
Description
Minor fixes of the already merged PR #4196
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added / Removed / Updated [X].
Migration Guide
Summary by CodeRabbit