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

Update golangci-lint #2606

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

matejvasek
Copy link
Contributor

Changes

  • 🧹 Update golangci-lint

Signed-off-by: Matej Vašek <[email protected]>
Copy link

knative-prow bot commented Dec 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matejvasek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 2, 2024
@knative-prow knative-prow bot requested review from nainaz and vyasgun December 2, 2024 13:31
@knative-prow knative-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 2, 2024
@matejvasek matejvasek requested review from dsimansk, gauron99 and lkingland and removed request for nainaz and vyasgun December 2, 2024 13:31
@matejvasek
Copy link
Contributor Author

@dsimansk @gauron99 PTAL

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 65.41%. Comparing base (cd24d85) to head (c8215c9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/root.go 0.00% 1 Missing ⚠️
pkg/knative/deployer.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2606      +/-   ##
==========================================
+ Coverage   64.13%   65.41%   +1.28%     
==========================================
  Files         130      130              
  Lines       15516    15516              
==========================================
+ Hits         9951    10150     +199     
+ Misses       4625     4389     -236     
- Partials      940      977      +37     
Flag Coverage Δ
e2e-test 35.82% <0.00%> (ø)
e2e-test-oncluster 32.89% <0.00%> (+0.05%) ⬆️
e2e-test-oncluster-runtime 28.66% <0.00%> (?)
e2e-test-runtime-go 26.45% <0.00%> (?)
e2e-test-runtime-node 25.85% <0.00%> (?)
e2e-test-runtime-python 25.85% <0.00%> (?)
e2e-test-runtime-quarkus 26.00% <0.00%> (?)
e2e-test-runtime-rust 24.95% <0.00%> (?)
e2e-test-runtime-springboot 24.99% <0.00%> (?)
e2e-test-runtime-typescript 25.96% <0.00%> (?)
integration-tests 51.97% <0.00%> (+2.30%) ⬆️
unit-tests 50.92% <0.00%> (?)
unit-tests-macos-latest ?
unit-tests-ubuntu-latest ?
unit-tests-windows-latest ?

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.

@@ -303,7 +303,7 @@ func mergeEnvs(envs []fn.Env, envToUpdate *util.OrderedMap, envToRemove []string

errMsg := fn.ValidateEnvs(envs)
if len(errMsg) > 0 {
return []fn.Env{}, 0, fmt.Errorf(strings.Join(errMsg, "\n"))
return []fn.Env{}, 0, fmt.Errorf("error(s) while validating envs: %s", strings.Join(errMsg, "\n"))
Copy link
Contributor

Choose a reason for hiding this comment

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

what does the error(s) mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There may be one or more.

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO something in the realm of covering plural form if present: e.g. 1 error vs. 2 errors

@dsimansk
Copy link
Contributor

dsimansk commented Dec 2, 2024

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2024
@knative-prow knative-prow bot merged commit 3d19d9b into knative:main Dec 2, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants