Skip to content

linter: detect dead code in new PRs #7052

@tarasmadan

Description

@tarasmadan

Reviewing the large PRs there is a higher chance to miss the dead code.
AI scaled the side of the PRs.

The proposal is to consider 2 alternatives:

  1. Leverage unused linter: ./tools/syz-env bin/golangci-lint run --new-from-rev=HEAD~1 ./.... Amount of commits should be retrieved somehow additionally
  2. ./tools/syz-env go run golang.org/x/tools/cmd/deadcode@latest ./...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions