Skip to content

golangci-lint: enable whitespace linter#13905

Merged
bboreham merged 2 commits intoprometheus:mainfrom
mmorel-35:whitespace
Apr 11, 2024
Merged

golangci-lint: enable whitespace linter#13905
bboreham merged 2 commits intoprometheus:mainfrom
mmorel-35:whitespace

Conversation

@mmorel-35
Copy link
Copy Markdown
Contributor

Signed-off-by: Matthieu MOREL [email protected]

Copy link
Copy Markdown
Member

@bboreham bboreham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I personally like to avoid excess whitespace, I'm not sure I want a machine complaining to me about it.
Let's see what anyone else thinks.

@mmorel-35
Copy link
Copy Markdown
Contributor Author

mmorel-35 commented Apr 9, 2024

Let's see.
If you fix lint on save you won't even notice 😉.

There wasn't so many files to fix so it's mainly applied it seems.

Copy link
Copy Markdown
Member

@machine424 machine424 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree the auto fix (we have make lint-fix) makes it more appealing.
No one wants to chase unneeded empty lines.
Thanks!

Copy link
Copy Markdown
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bboreham bboreham merged commit 6f595c6 into prometheus:main Apr 11, 2024
@mmorel-35 mmorel-35 deleted the whitespace branch April 11, 2024 08:30
bboreham pushed a commit to bboreham/prometheus that referenced this pull request Jun 20, 2024
* upstream/main: (32 commits)
  Avoid creating new slices for labels values on postings for matchers (prometheus#13958)
  Improve the metric description
  Add a changelog entry
  Change variable name to `restoreStartTime` from `now` and introduce a log line to record total time
  promtool: Fix panic on extended tsdb analyze (prometheus#13976)
  Rule Manager: Add `rule_group_last_restore_duration_seconds` to measure restore time per rule group
  build(deps): bump github.com/aws/aws-sdk-go from 1.51.24 to 1.51.25
  build(deps): bump github.com/hetznercloud/hcloud-go/v2
  Downgrade github.com/ovh/go-ovh back to v1.4.3
  Downgrade k8s apis back to v0.29.3
  Update Go dependencies before 2.52
  build(deps): bump github.com/prometheus/common
  tsdb/wlog: add test for metrics unregistering
  discovery(k8s): add metadata labels to endpointslices
  parser: remake generated_parser output (prometheus#13923)
  Adds Inf and NaN as Numbers to Histogram in Promql Testing Framework (prometheus#13916)
  tsdb/wlog: unregister metrics on WL close
  golangci-lint: enable whitespace linter (prometheus#13905)
  Cut release 2.51.2
  List Prometheus v3 coordinators in MAINTAINERS.md
  ...

Signed-off-by: gotjosh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants