Skip to content

chore(lint): Add "go vet" to golangci-lint#3095

Merged
kakkoyun merged 3 commits into
mainfrom
kakkoyun/change_golangcilint_add_govet
Jan 17, 2025
Merged

chore(lint): Add "go vet" to golangci-lint#3095
kakkoyun merged 3 commits into
mainfrom
kakkoyun/change_golangcilint_add_govet

Conversation

@kakkoyun

Copy link
Copy Markdown
Member

Signed-off-by: Kemal Akkoyun [email protected]

What does this PR do?

This PR enables go vet for the static checks of the codebase.

Motivation

go vet is a tool that reports suspicious constructs in Go code as part of stadard Go tooling.
It is a static analysis tool that checks for common mistakes in the code.
It is a good practice to run go vet before submitting a PR to catch potential issues early.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.
  • For internal contributors, a matching PR should be created to the v2-dev branch and reviewed by @DataDog/apm-go.

Unsure? Have a question? Request a review!

@kakkoyun
kakkoyun requested review from a team as code owners January 16, 2025 15:54
@kakkoyun
kakkoyun marked this pull request as draft January 16, 2025 15:55
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jan 16, 2025

Copy link
Copy Markdown

Datadog Report

Branch report: kakkoyun/change_golangcilint_add_govet
Commit report: aa9b2e2
Test service: dd-trace-go

✅ 0 Failed, 5181 Passed, 71 Skipped, 2m 54.18s Total Time

@pr-commenter

pr-commenter Bot commented Jan 16, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-01-16 17:36:53

Comparing candidate commit 9666888 in PR branch kakkoyun/change_golangcilint_add_govet with baseline commit 2671ec0 in branch ``.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 0 unstable metrics.

@kakkoyun
kakkoyun marked this pull request as ready for review January 16, 2025 16:52
@darccio

darccio commented Jan 17, 2025

Copy link
Copy Markdown
Member

@kakkoyun You can update the branch and merge this PR. Thanks!

@kakkoyun
kakkoyun enabled auto-merge (squash) January 17, 2025 10:17
@kakkoyun
kakkoyun merged commit 049c210 into main Jan 17, 2025
@kakkoyun
kakkoyun deleted the kakkoyun/change_golangcilint_add_govet branch January 17, 2025 10:21
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.

2 participants