1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-08 01:54:03 +00:00
Commit graph

30 commits

Author SHA1 Message Date
dongjiang
5a8daae34b
chore: Upgrade golangci-lint to v2 and golangci-lint-action to v7.0.0 ()
---------

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 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 ()
* 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 ()
* 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 ()
---------

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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
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 ()
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 () 2023-10-04 05:22:11 -03:00
Arthur Silva Sens
0e3614cf61
Enable depguard linter against github.com/pkg/errors ()
* 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 ()
* 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 ()
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 ()
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 ()
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