diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a68739b9fa09..c2aa1657648d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -41,9 +41,7 @@ jobs: # ex: # - 1.18beta1 -> 1.18.0-beta.1 # - 1.18rc1 -> 1.18.0-rc.1 - # TODO(ldez) must be changed after the first release of golangci-lint with go1.21 - # go-version: ${{ env.GO_VERSION }} - go-version: '1.20' + go-version: ${{ env.GO_VERSION }} - name: lint uses: golangci/golangci-lint-action@v3.6.0 with: diff --git a/.golangci.yml b/.golangci.yml index 349d909d760d..659d23fcfee8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,13 +1,5 @@ linters-settings: depguard: - # old configuration. TODO(ldez): must be removed - list-type: denylist - packages: - # logging is allowed only by logutils.Log, logrus - # is allowed to use only in logutils package - - github.com/sirupsen/logrus - packages-with-error-message: - - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" # new configuration rules: logger: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a5bef8adfb3..67c9eb0966be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint) There is the most valuable changes log: +### v1.54.2 + +1. updated linters: + * `errname`: from 0.1.10 to 0.1.12 + * `ginkgolinter`: from 0.13.3 to 0.13.5 + * `go-errorlint`: from 1.4.3 to 1.4.4 + * `godot`: from 1.4.11 to 1.4.14 + * `gosec`: from 2.16.0 to 2.17.0 + * `musttag`: from 0.7.1 to 0.7.2 + * `nilnil`: from 0.1.5 to 0.1.7 + * `staticcheck`: from 0.4.3 to 0.4.5 + * `usestdlibvars`: from 1.23.0 to 1.24.0 + * `govet`: add missing `directive` and `slog` passes + ### v1.54.1 1. updated linters: diff --git a/README.md b/README.md index 654804abde9d..09ca7b732e4b 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ The Core Team has the following responsibilities: - + @@ -94,29 +94,29 @@ The Core Team has the following responsibilities: + - + + - -

Ludovic Fernandez

Ludovic Fernandez

Denis Isaev

Aleksandr Razumov

Patrick Ohly

David Lobe

Alexey Palazhchenko

Ville Skyttä

Duco van Amstel

Nishanth Shanmugham

Kensei Nakada

Melvin

Melvin

quasilyte

Denis Krivak

Mitsuo Heijo

Alec Thomas

Maik Schreiber

Steve Coffman

Mitsuo Heijo

Nahshon Unna Tsameret
-And 429 more our team members +And 431 more our team members + - @@ -147,7 +147,7 @@ The Core Team has the following responsibilities: - + @@ -174,7 +174,7 @@ The Core Team has the following responsibilities: - + @@ -217,453 +217,455 @@ The Core Team has the following responsibilities: + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + - - + + - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + diff --git a/assets/github-action-config.json b/assets/github-action-config.json index 6601b2db7ec0..998053433ba8 100644 --- a/assets/github-action-config.json +++ b/assets/github-action-config.json @@ -1,8 +1,8 @@ { "MinorVersionToConfig": { "latest": { - "TargetVersion": "v1.54.1", - "AssetURL": "https://github.com/golangci/golangci-lint/releases/download/v1.54.1/golangci-lint-1.54.1-linux-amd64.tar.gz" + "TargetVersion": "v1.54.2", + "AssetURL": "https://github.com/golangci/golangci-lint/releases/download/v1.54.2/golangci-lint-1.54.2-linux-amd64.tar.gz" }, "v1.10": { "Error": "golangci-lint version 'v1.10' isn't supported: we support only v1.14.0 and later versions" @@ -186,8 +186,8 @@ "AssetURL": "https://github.com/golangci/golangci-lint/releases/download/v1.53.3/golangci-lint-1.53.3-linux-amd64.tar.gz" }, "v1.54": { - "TargetVersion": "v1.54.1", - "AssetURL": "https://github.com/golangci/golangci-lint/releases/download/v1.54.1/golangci-lint-1.54.1-linux-amd64.tar.gz" + "TargetVersion": "v1.54.2", + "AssetURL": "https://github.com/golangci/golangci-lint/releases/download/v1.54.2/golangci-lint-1.54.2-linux-amd64.tar.gz" }, "v1.6": { "Error": "golangci-lint version 'v1.6' isn't supported: we support only v1.14.0 and later versions"

Nahshon Unna Tsameret

Matouš Dzivjak

Ville Skyttä

Will Dixon

Mateusz Gozdek

Michael Mulligan

Gustavo Bazan

Eugene Simonov

Steven Hartland

Timon Wong

Timon Wong

Nate Finch

Yifei Liu

Agniva De Sarker

Adam Shannon

SystemGlitch

SystemGlitch

Henrik Johansson

Daniel Helfand

Benjamin Wang

Adam Jones

Paweł Żak

Faisal Alam

Alex Collins

Ryo Nakao

Ryan Olds

Ryan Olds

Tommy Mühle

Sebastiaan van Stijn

Sam Zaydel

Carlos Alexandro Becker

@Dominik-K

Craig Silverstein

Sindre Røkenes Myren

Sindre Røkenes Myren

Bartłomiej Klimczak

M. Ángel Jimeno

Jan Oopkaup

Chris Drew

Teiva Harsanyi

Brian Flad

Chris Suszynski

Chris Suszynski

@chenfeining

Kailun Qin

Misha Gusarov

@Abirdcfly

Ariel Mashraki

Shulhan

Oscar

Oscar

Denis Isaev

Dreamacro

Tom Payne

@fsouza

Koya IWAMURA

Hiroki Suezawa

Lauris BH

Lauris BH

Sean McGinnis

Fabrice

Christoph Blecker

Mateusz Bilski

Jakub Chábek

Ben Ye

lufe

lufe

@sg0hsmt

Stephanie Wilde-Hobbs

Cory LaNou

Vitaly Isaev

Pete Wagner

Renato Suero

Buyanov Vladimir

Buyanov Vladimir

Sven Anderson

Ben Wells

Jonathan Chappelow

Siarhei Navatski

Yuki Okushi

hbc

WÁNG Xuěruì

WÁNG Xuěruì

Eric Wohltman

Borja Clemente

Ethan Reesor

Mattias de Zalenski

@AlduLonghi

masibw

Sonia Hamilton

Sonia Hamilton

@black-06

Gianguido Sorà

Derek Perkins

Oksana Grishchenko

Berezhnoy Pavel

Henry

Aofei Sheng

Aofei Sheng

jessetang

Maksym Pavlenko

Ivan Prisyazhnyy

@ngehrsitz

John Reese

Matthew Gabeler-Lee

James Lucktaylor

James Lucktaylor

Dale Hui

Ondrej Fabry

Aris Tzoumas

Gabor Javorszky

hori-ryota

Kishan B

proton

proton

Eric Jain

Ghvst Code

Son Luong Ngoc

Markus

Sebastian Spaink

Andrew Lavery

Mark Fine

Mark Fine

Rory Prendergast

Tariq Ibrahim

Peter Štibraný

kaixiang zhong

@ced42

David Bariod

Stephen Benjamin

Stephen Benjamin

@kkHAIKE

Hsing-Yu (David) Chen

Batuhan Apaydın

过客龙门

Eldar Rakhimberdin

Toon Schoenmakers

Cezar Sá Espinola

Cezar Sá Espinola

Ben Paxton

Connor Adams

Draven

David Cuadrado

Max Riveiro

Martins Irbe

Yilong Li

Yilong Li

Rodrigo Brito

@techknowlogick

takaya

Craig Furman

@ttys3

Mark Sart

Joshua Rubin

Joshua Rubin

Danil Ovchinnikov

Rafael Franco

Ksenia Rogova

Paul Vaughan

Linus Arver

Glen Mailer

Ian Howell

Chris K

Ian Howell

Chris K

Grigory Zubankov

@xxpxxxxp

subham sarkar

Ryan Leung

Donal Byrne

Yusuke Kadowaki

Yusuke Kadowaki

@CfirTsabari

@ImprintNav

Jared Allard

Marko

Chris Lewis

Muhammad Ikhsan

Anton Braer

Jaegu Kim

Anton Braer

Jaegu Kim

David Gleich

Fata Nugraha

mattu

Dan Richelson

Denis Titusov

Terdunov Vyacheslav

Sean Chittenden

Terdunov Vyacheslav

Sean Chittenden

Hui Zhu

@Harsimran1

rinsuki

Anton Antonov

@hn8

Kevin Gillette

Milas Bowman

Kevin Gillette

Milas Bowman

@credativ-dar

☃ Elliot Shepherd

@nvartolomei

Martin Etmajer

Fisher Xu

Matthew Poer

Cody Ley-Han

Matthew Poer

Cody Ley-Han

@darklore

@to6ka

@evalexpr

Collin Kreklow

Marcin Owsiany

C.J. Jameson

Jacek

C.J. Jameson

Jacek

paul fisher

@ofw

Rafik Draoui

Miles Delahunty

Anton Kachurin

Nico Ismaili

Benjamin Kane

Nico Ismaili

Benjamin Kane

@trajan0x

Philip Linell

Herman van Zyl

Jongwoo Han

Jongwoo Han

Chaliy Roman Aleksandrovich

Ryo Sato

Eric Zimanyi

Ryo Sato

Eric Zimanyi

Ben Bernays

Boban Acimovic

Viktor Alenkov

Dima

David Hill

Troy Ronda

Florian Gessner

Troy Ronda

Florian Gessner

Osamu TONOMORI

Bo Liu

Steven Allen

Colin Arnott

Eran Levy

Roman Leventov

Hugo

Roman Leventov

Hugo

Mathias Weber

Naveen

@maxsond

Maksim Meshkov

@raffepaffe

Dejan Benedik

Adam Bouqdib

Dejan Benedik

Adam Bouqdib

Brandur Leach

Michael

Evgeniy Kulikov

Chris Nesbitt-Smith

Daniel Caballero

Igor Zibarev

Carl Henderson

Igor Zibarev

Carl Henderson

Shintaro Anazawa

Matt Braymer-Hayes

Arjen van der Ende

David Beitey

Pete Davison

Tomas Dabasinskas

@xuri

Tomas Dabasinskas

@xuri

Charl Matthee

Sriram Venkatesh

Peter Schuller

David Golub

Alexander Morozov

Pastoh

Liam White

Pastoh

Liam White

Alex Dupre

Juanito

Jinming Yue

@wxdao

Kévin Dunglas

Sijie Yang

Stephen

Sijie Yang

Stephen

Thang Minh Vu

Julia Ogris

Greg Curtis

@ac-rappi

Dudás Ádám

Abhishek | अभिषेक

Daniele

Abhishek | अभिषेक

Daniele

Takumasa Sakao

Ben Drucker

Stephen Brown II

Matthew Cobbing

@Darlez

Kirill Danshin

mook

Kirill Danshin

mook

Kyungmin Bae

Dylan Arbour

Cory Miller

Ben Brown

Dor

sink

João Freitas

sink

João Freitas

nick

David Bendory

@znley

Jonathan Colby

@andreykuchin

Irina

Petr Pučil

Irina

Petr Pučil

Aaron Bennett

zaunist

Daniil Suvorov

Yuki Watanabe

Aisuko

Tung Bui (Leo)

Alexandre Vilain

Tung Bui (Leo)

Kunal Singh

Alexandre Vilain

Federico Guerinoni

Matias Lahti

Thirukumaran Vaseeharan

Matheus Macabu

Alessio Treglia

Alay Patel

Martin Hutchinson

Emanuel Bennici

Mayo

smantic

@connorszczepaniak-wk

Sebastian Crane

Alexander Else

@vladopajic

Lucas Ramage

Trim21

Catena cyber

@CfirTsabari

Christian Clauss

Johanan Liebermann

Korjavin Ivan

Johanan Liebermann

Korjavin Ivan

Eng Zer Jun

Mateus Esdras

Devin Gunay

Hilário Coelho

Thomas Cave

Tibo Delor

@chainchad

Tibo Delor

@chainchad

Francois Parquet

Robert Kopaczewski

Marc Tudurí

@opennota

@pohang

Cyrille Meichel

neglect-yp

Cyrille Meichel

neglect-yp

Felix

Adrien

Joe Bergevin

Axetroy

Guillaume JG

cnmade

Evan Cordell

cnmade

Evan Cordell

靳灿奇

Nassos Kat

hitzhangjie

Jesse Donat

Abhinav Gupta

KADOTA, Kyohei

Conor Evans

KADOTA, Kyohei

Conor Evans

Anirudh Sylendranath

@jumpeiMano

Alex Rodin

Oliver Gugger

Bryan Andrews

Wei Jian Gan

Tamás Gulácsi

Wei Jian Gan

Tamás Gulácsi

Jack Wilsdon

Michał Suchwałko

Alexander Apalikov

Domas Tamašauskas

Stéphane Chausson

neo_sli

@srdhoni

neo_sli

@srdhoni

@derekhuizhang

takaokanbe

Sean Schneeweiss

pprzekwas

madflow

Arman Tarkhanian

John Adler

Arman Tarkhanian

John Adler

@licraft2019

@mlueckest

Malte Ehrlen

@golangaccount

Tyler Dorn

Enmanuel Moreira

@eiffel-fl

Enmanuel Moreira

@eiffel-fl

Sylvain Rabot

Piotr Persona

Han Gyoung-Su

Harry Tennent

Kamyar Mirzavaziri

Thomas Bonfort

Matthieu MOREL

Thomas Bonfort

Matthieu MOREL

Egor Kovetskiy

Jared Szechy