Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

houseme
Copy link
Member

@houseme houseme commented Aug 29, 2025

  • Add gofmt rewrite-rules to .golangci.yml for code formatting consistency.
  • Update deprecation comment in gpage.go to specify removal in version 3.0.

- Add `gofmt` rewrite-rules to `.golangci.yml` for code formatting consistency.
- Update deprecation comment in `gpage.go` to specify removal in version 3.0.
@houseme houseme requested review from Copilot and hailaz August 29, 2025 03:36
Copilot

This comment was marked as outdated.

@houseme houseme requested a review from Copilot August 29, 2025 04:26
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 enhances the linting configuration and updates package deprecation notices. It adds comprehensive gofmt rewrite-rules to modernize Go code patterns and provides clearer deprecation timelines.

Key changes:

  • Added extensive gofmt rewrite-rules for modernizing Go patterns (interface{} to any, deprecated ioutil functions)
  • Updated deprecation notice to specify removal timeline for version 3.0
  • Enhanced GitHub Actions workflow to fetch full git history for linting

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.golangci.yml Added gofmt rewrite-rules for modern Go patterns and deprecated function replacements
util/gpage/gpage.go Updated deprecation comment to specify removal in version 3.0
.github/workflows/golangci-lint.yml Added fetch-depth: 0 to checkout action for complete git history

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@hailaz hailaz merged commit bea060a into master Aug 29, 2025
27 checks passed
@hailaz hailaz deleted the fix/deprecated-gpage branch August 29, 2025 07:26
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.

2 participants