Skip to content

Conversation

@kaovilai
Copy link
Collaborator

@kaovilai kaovilai commented Nov 4, 2025

This commit adds lint-fix and local-lint-fix make targets that
automatically fix linting issues using golangci-lint --fix.

The implementation reuses the existing hack/lint.sh script by
adding support for a "fix" parameter that enables the --fix flag.

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #(issue)

Please indicate you've done the following:

@kaovilai kaovilai added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Nov 4, 2025
@kaovilai kaovilai marked this pull request as ready for review November 4, 2025 21:07
@kaovilai kaovilai force-pushed the add-lint-fix-target branch from 5b4c942 to e1e22c6 Compare November 4, 2025 21:08
@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.01%. Comparing base (7688579) to head (765a6dd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9388   +/-   ##
=======================================
  Coverage   60.01%   60.01%           
=======================================
  Files         384      384           
  Lines       35386    35386           
=======================================
+ Hits        21236    21238    +2     
+ Misses      12590    12589    -1     
+ Partials     1560     1559    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This commit adds lint-fix and local-lint-fix make targets that
automatically fix linting issues using golangci-lint --fix.

The implementation reuses the existing hack/lint.sh script by
adding support for a "fix" parameter that enables the --fix flag.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Tiger Kaovilai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants