chore: Remove unnecessary use of `new` and `&SomeStruct{}` and add new `extraneousnew` custom linter by gmlewis · Pull Request #4106 · google/go-github

@gmlewis

Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>

@gmlewis added the NeedsReview

PR is awaiting a review before merging.

label

Mar 17, 2026

alexandear

stevehipwell

@gmlewis gmlewis changed the title chore: Remove unncessary use of new and &SomeStruct{} chore: Remove unnecessary use of new and &SomeStruct{}

Mar 18, 2026

@gmlewis

Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>

@gmlewis

alexandear

@gmlewis

Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>

@gmlewis gmlewis changed the title chore: Remove unnecessary use of new and &SomeStruct{} chore: Remove unnecessary use of new and &SomeStruct{} and add new extraneousnew custom linter

Mar 18, 2026

@gmlewis gmlewis deleted the i4103-new-some-struct branch

March 18, 2026 21:13