1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

37 Commits

Author SHA1 Message Date
dongjiang
83ed01170f Merge pull request #8062 from kubeservice-stack/update-thanos-v0.40.1
chore: Update thanos version to v0.40.1 and golang version to 1.25
2025-11-24 21:35:15 +01:00
dongjiang
9ab0ffd0d7 chore: add modernize lint (#8094)
* add modernize lint
* fix github action
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2025-11-13 12:02:09 +05:30
dongjiang
fcc78c7e07 change sort to slices package
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-11-04 16:28:38 +08:00
dongjiang
3ff38ebe62 chore: Update golangci-lint version to v2.5.0 (#7949)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-09-25 14:11:04 +02:00
dongjiang
8b3e5d3d35 update golangci-lint version (#7695)
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-07-10 14:13:00 +02:00
dongjiang
fa9781c24f update golangci-lint version
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-05-15 21:34:40 +08:00
dongjiang
1189699178 optimization redefines-builtin-id
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-04-24 12:10:19 +08:00
dongjiang
5a8daae34b chore: Upgrade golangci-lint to v2 and golangci-lint-action to v7.0.0 (#7430)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-03-31 09:51:44 +02:00
dongjiang
5492b88157 Merge pull request #7343 from kubeservice-stack/update-golangci-lint
chore: Upgrade golangci-lint to v1.64.5
2025-02-18 11:55:09 +01:00
dongjiang
fbe3356fe4 fix golangci-lint timeout
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-01-22 11:26:51 +08:00
dongjiang
6cfb80cfbb chore: Update golangci-lint to v1.63.4 (#7250)
* update golangci-lint to v1.63.4

Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-01-09 15:51:33 +05:30
dongjiang
f9a85a6887 chore: update .golangci.yaml config (#7190)
* update golangci config

Signed-off-by: dongjiang <dongjiang1989@126.com>

---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-01-06 12:14:18 +01:00
dongjiang
91af9515bf chore: Update golangci-lint to v1.62.0 (#7101)
---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2024-11-13 15:48:14 +01:00
Simon Pasquier
3b4a558af3 chore: update golangci-lint configuration
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-05-13 14:59:29 +02:00
Arthur Silva Sens
bfe114257c Enable revive (#6207)
* Enable revive linter in test/framework

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Fix revive issues

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

---------

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-01-15 11:03:57 +01:00
Arthur Silva Sens
2ed10ae2f5 Prevent unnecessary type conversions (#6210)
* Prevent unnecessary type conversions

By enabling the unconvert linter

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Fix unconvert issues

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

---------

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-01-08 20:11:27 +00:00
Arthur Silva Sens
547fea903e Prevent mistakes with testify lib (#6211)
* Prevent mistakes with testify

By enabling testifylint

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Fix testifylint issues

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

---------

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-01-08 17:06:49 +00:00
Arthur Silva Sens
164cb034ec Ensure all comments end with a period (#6208)
* Ensure all comments end with a period.

By enabling the godot linter

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Fix godot issues

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

---------

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-01-08 12:07:39 -03:00
Simon Pasquier
59e824d2ce chore: mark deprecated fields correctly
This change ensures that deprecated CRD fields are properly commented
which make them reported by Go linters.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-12-08 10:14:58 +01:00
Arthur Silva Sens
27c3a8c5b0 Remove depguard file filters
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-11-17 13:30:07 -03:00
Arthur Silva Sens
53aa2346fe Enable depguard in more test framework files
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-10-25 17:33:18 -03:00
Arthur Silva Sens
921158afe3 Enable depguard in tests/framework/framework.go
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-10-25 16:52:43 -03:00
Arthur Silva Sens
da57db9366 Enable depguard in e2e tests
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-10-10 14:20:06 -03:00
Arthur Silva Sens
79e8c302c2 Enable depguard in more packages
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-10-09 14:31:51 -03:00
Arthur Silva Sens
3c8a018721 Enable depguard in prometheus pkg (#5973)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-10-09 16:43:44 +00:00
Arthur Silva Sens
974593032f Enable depguard in more packages (#5969)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-10-06 10:07:55 -03:00
Arthur Silva Sens
88f0273894 Enable depguard in more packages (#5963) 2023-10-04 05:22:11 -03:00
Arthur Silva Sens
0e3614cf61 Enable depguard linter against github.com/pkg/errors (#5930)
* Enable depguard linter against github.com/pkg/errors

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* Replace errors in pkg/{admission,alertmanager}

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

---------

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-09-30 13:22:03 +02:00
Simon Pasquier
12580d663a chore: fix imports order
The commit also enables the gci linter in the golangci-lint
configuration.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2023-06-15 10:03:42 +02:00
Maksim Nabokikh
9fcdff92e3 Bump golangci-lint and switch to the revive (#4089)
* Bump golag-ci lint version to 1.40.1

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Bump linter on CI

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Fix promlinter and examples

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2021-06-09 13:32:23 +02:00
Simon Pasquier
efbe51d986 *: fix errcheck errors
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2021-03-26 14:08:59 +01:00
Simon Pasquier
2060d3613f *: fix gosimple errors (#3934)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2021-03-26 14:08:26 +01:00
Simon Pasquier
430e29d2a4 *: fix staticcheck errors
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2021-03-23 11:50:36 +01:00
Simon Pasquier
25e085a357 *: fix golint errors (#3924)
Also fix the missing Thanos Ruler and Alertmanager collector metrics.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2021-03-23 11:21:14 +01:00
Simon Pasquier
5a24128837 pkg/prometheus: fix govet errors (#3916)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2021-03-18 09:49:30 +01:00
Amab
d1373b7984 Apply suggested changes 2020-11-26 16:02:30 +01:00
Amab
92312ed87f Add .golangci.yml 2020-11-25 17:17:03 +01:00