Skip to content

Conversation

@aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Aug 26, 2025

Enable unconvert linter and fix issues.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 requested review from bwplotka, Copilot and ywwg August 26, 2025 16:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request enables the unconvert linter in the project and fixes all the unnecessary type conversions it identified. The unconvert linter detects type conversions that are redundant because the expression is already of the target type.

  • Enables the unconvert linter in the golangci-lint configuration
  • Removes unnecessary type conversions across multiple Go files
  • Fixes redundant string conversions and type casts

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.golangci.yml Uncomments the unconvert linter to enable it
model/value.go Removes unnecessary string conversion in JSON marshaling
model/time.go Removes redundant string conversions in time parsing
model/metric_test.go Removes unnecessary string conversion in regex matching
config/http_config.go Removes multiple unnecessary type conversions in configuration validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@aknuds1 aknuds1 merged commit 15ce6ee into main Aug 26, 2025
9 checks passed
@aknuds1 aknuds1 deleted the arve/unconvert branch August 26, 2025 17:49
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.

3 participants