1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-08-08 05:02:04 +03:00

cherry-pick: golangci-lint version and action update (#1046)

* Update golangci/golangci-lint-action action to v7

| datasource  | package                       | from   | to     |
| ----------- | ----------------------------- | ------ | ------ |
| github-tags | golangci/golangci-lint-action | v6.5.2 | v7.0.0 |


Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency golangci/golangci-lint to v2

| datasource  | package                | from    | to     |
| ----------- | ---------------------- | ------- | ------ |
| github-tags | golangci/golangci-lint | v1.64.8 | v2.1.5 |


Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* golangci-lint migrate result

* Fix linting error - remove embedded field

* Update the make target for lint

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
Gabor Javorszky
2025-04-28 11:09:53 +01:00
committed by GitHub
parent 44f438e6ea
commit a60e66528b
6 changed files with 73 additions and 60 deletions

View File

@@ -130,7 +130,7 @@ func TestAddMissingEnvironmentFlags(t *testing.T) {
// instead of checking the envar of each matching flag name
for k, v := range expectedMatches {
matched := false
for _, f := range kingpin.CommandLine.Model().FlagGroupModel.Flags {
for _, f := range kingpin.CommandLine.Model().Flags {
if f.Name == k && f.Envar == v {
matched = true
}