Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: polyfloyd/go-errorlint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.1
Choose a base ref
...
head repository: polyfloyd/go-errorlint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.0
Choose a head ref
  • 8 commits
  • 14 files changed
  • 5 contributors

Commits on Feb 7, 2025

  1. ci: Check gofmt

    polyfloyd committed Feb 7, 2025
    Configuration menu
    Copy the full SHA
    e59b2af View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2025

  1. Configuration menu
    Copy the full SHA
    5e9a019 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2025

  1. chore: bump golang.org/x/tools from 0.29.0 to 0.30.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.29.0 to 0.30.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.29.0...v0.30.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and polyfloyd committed Mar 14, 2025
    Configuration menu
    Copy the full SHA
    aa9b5f9 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2025

  1. feat: Add automatic error comparison and type assertion fixes (#96)

    Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
    Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
    
    Enhance errorlint analyzer with automatic fixes for:
    - Error comparisons using `==` and `!=`
    - Type assertions on errors
    - Error switches
    
    Adds suggested fixes to:
    - Replace direct error comparisons with `errors.Is()`
    - Convert type assertions to use `errors.As()`
    - Transform error switches to use `errors.Is()` and `errors.As()`
    
    Includes new test cases and golden files to validate the new automatic fixing capabilities.
    
    * feat: Improve errorlint with better variable naming and error handling
    
    - Add function for meaningful error variable names
    - Preserve original "ok" variable names in type assertions
    - Use errors.As() with generated variable names
    - Add tests for custom and wrapped errors
    kakkoyun authored Mar 22, 2025
    Configuration menu
    Copy the full SHA
    040cb97 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2025

  1. ci: Minor tweaks

    * Rename workflow
    * Run go mod check separately
    polyfloyd committed Apr 1, 2025
    Configuration menu
    Copy the full SHA
    8e89baf View commit details
    Browse the repository at this point in the history
  2. chore: bump golang.org/x/tools from 0.30.0 to 0.31.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.30.0 to 0.31.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.30.0...v0.31.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-version: 0.31.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and polyfloyd committed Apr 1, 2025
    Configuration menu
    Copy the full SHA
    3d14c6e View commit details
    Browse the repository at this point in the history
  3. chore: go mod tidy

    polyfloyd committed Apr 1, 2025
    Configuration menu
    Copy the full SHA
    e1064e0 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2025

  1. bump: version 1.7.1 → 1.8.0

    github-actions committed Apr 2, 2025
    Configuration menu
    Copy the full SHA
    dce6dde View commit details
    Browse the repository at this point in the history
Loading