Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

@julio-lopez julio-lopez commented Nov 12, 2025

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.05%. Comparing base (cb455c6) to head (74bbab3).
⚠️ Report is 745 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4975      +/-   ##
==========================================
+ Coverage   75.86%   78.05%   +2.18%     
==========================================
  Files         470      548      +78     
  Lines       37301    31429    -5872     
==========================================
- Hits        28299    24532    -3767     
+ Misses       7071     4849    -2222     
- Partials     1931     2048     +117     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez marked this pull request as ready for review November 12, 2025 00:52
Copilot AI review requested due to automatic review settings November 12, 2025 00:52
Copy link

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 PR enables the wsl_v5:return linter rule to enforce blank lines before return statements in Go code, improving code readability and consistency across the codebase.

Key Changes:

  • Enabled the wsl_v5:return linter rule by removing it from the disabled list in .golangci.yml
  • Added blank lines before return statements across 10 files to comply with the newly enforced linter rule
  • Added clarifying comments explaining that nakedret and nlreturn linters are disabled because their rules are already enforced by stricter alternatives

Reviewed Changes

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

Show a summary per file
File Description
.golangci.yml Removed return from wsl_v5 disabled rules list and added comments explaining disabled nakedret and nlreturn linters
tests/tools/fswalker/fswalker_test.go Added blank lines before return statements in test helper functions
repo/repository_test.go Added blank lines before return statements in test callback functions
repo/manifest/manifest_manager_test.go Added blank line before return statement in test case function
repo/maintenance/maintenance_run.go Added blank line before return statement after log message
repo/compression/compressor_zstd.go Added blank line before return statement in sync.Pool initializer
repo/compression/compressor_pgzip.go Added blank line before return statement in sync.Pool initializer
repo/compression/compressor_gzip.go Added blank line before return statement in sync.Pool initializer
notification/notifytemplate/embeddedtemplate.go Added blank line before return statement after sort operation
internal/retry/retry_test.go Added blank line before return statement in test case function
cli/app.go Added blank line before return statement after exitWithError call

@julio-lopez julio-lopez merged commit 19af93f into kopia:master Nov 12, 2025
27 checks passed
@julio-lopez julio-lopez deleted the poc/wsl-return branch November 12, 2025 00:53
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.

1 participant