Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: tidy up lint config #577

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

jharley
Copy link
Collaborator

@jharley jharley commented Nov 15, 2024

unparam felt a bit extra in tests, so disabled it for test files and then cleaned up all the nolint directives

@jharley jharley added the refactor Internal improvements. label Nov 15, 2024
@@ -86,12 +86,7 @@ func resourceSLOCreate(ctx context.Context, d *schema.ResourceData, meta interfa
}

dataset := d.Get("dataset").(string)
s, err := expandSLO(d)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unparam was correct to call out that this function could never return an error (the signature was tying to match a bunch of the other expand* helpers)

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.49%. Comparing base (1aa3e54) to head (8b09930).

Files with missing lines Patch % Lines
honeycombio/resource_slo.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #577      +/-   ##
==========================================
- Coverage   75.55%   75.49%   -0.06%     
==========================================
  Files          87       87              
  Lines        7286     7277       -9     
==========================================
- Hits         5505     5494      -11     
  Misses       1429     1429              
- Partials      352      354       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jharley jharley marked this pull request as ready for review November 15, 2024 22:11
@jharley jharley requested a review from a team as a code owner November 15, 2024 22:11
Copy link
Contributor

@cewkrupa cewkrupa left a comment

Choose a reason for hiding this comment

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

🧹

@jharley jharley merged commit 5175a60 into main Nov 15, 2024
6 checks passed
@jharley jharley deleted the jharley.chore-remove-unparam-linter branch November 15, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Internal improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants