Skip to content

fix: resolve golangci-lint issues#191

Open
schmidtw wants to merge 1 commit into
mainfrom
fix-golangci-lint-issues
Open

fix: resolve golangci-lint issues#191
schmidtw wants to merge 1 commit into
mainfrom
fix-golangci-lint-issues

Conversation

@schmidtw

@schmidtw schmidtw commented Apr 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Disabled staticcheck ST1005 rule (error string capitalization) in golangci config
  • Fixed bodyclose warning in loader.go by properly handling HTTP response body cleanup in error paths and LoadContent method
  • Suppressed gosec G101 warnings for test fixture PEM keys in parser_test.go (not real credentials)

All golangci-lint issues now resolved (0 issues).

- Disable staticcheck ST1005 rule in golangci config
- Fix bodyclose warning by properly handling response body in LoadContent
- Suppress gosec G101 warnings for test fixture PEM keys
@codecov

codecov Bot commented Apr 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.57%. Comparing base (6599c91) to head (d14a964).

Files with missing lines Patch % Lines
loader.go 25.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #191      +/-   ##
==========================================
- Coverage   94.90%   94.57%   -0.33%     
==========================================
  Files          16       16              
  Lines         863      867       +4     
==========================================
+ Hits          819      820       +1     
- Misses         30       32       +2     
- Partials       14       15       +1     
Flag Coverage Δ
unittests 94.57% <25.00%> (-0.33%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@schmidtw
schmidtw requested a review from johnabass April 6, 2026 08:09
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