Skip to content

Conversation

sethvargo
Copy link
Owner

This deprecates (and hides) the check command in favor of a new lint command that outputs more information about violations including filenames and specific line numbers.

Closes #103

This deprecates (and hides) the `check` command in favor of a new `lint` command that outputs more information about violations including filenames and specific line numbers.
@sethvargo sethvargo requested a review from Copilot March 26, 2025 19:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the deprecated "check" command with a new "lint" command that provides detailed output on unpinned version violations. Key changes include the addition of a new lint command and supporting linter and formatter packages, deprecation of the check command, and corresponding test and documentation updates.

  • Introduced a new lint command in the command package.
  • Deprecated the check command by adding deprecation messages and hiding it.
  • Updated tests, documentation, and command generation code to reflect the change.

Reviewed Changes

Copilot reviewed 19 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
command/lint.go New lint command implementation replacing the check command.
formatter/formatter.go New formatter implementations for various output formats.
linter/linter.go New linter package containing the Violation type.
parser/parser.go Refactored parser functions and integrated linting logic.
command/check.go Deprecated the check command with appropriate deprecation notice.
main.go Minor update to error output handling.
README.md Updated documentation and usage examples to use lint instead of check.
command/cmd/gen/main.go Simplified folder resolution in command generation.
parser/*_test.go Updated expected test values from an empty slice to nil.
resolver/actions.go Upgraded the GitHub API dependency version from v58 to v70.
command/command_gen.go Updated generated command help to reference lint instead of check.
parser/refs.go Simplified key extraction and cloning using maps and slices.
command/command.go Added lint command to the command registry.
Files not reviewed (1)
  • go.mod: Language not supported

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Seth Vargo <seth@sethvargo.com>
@sethvargo sethvargo enabled auto-merge (squash) March 26, 2025 19:36
@sethvargo sethvargo merged commit 5d7d797 into main Mar 26, 2025
1 check passed
@sethvargo sethvargo deleted the sethvargo/lint branch March 26, 2025 19:36
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.

Output errors in a supported way for GitHub Action
1 participant