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

golangci-lint #10577

Merged
merged 1 commit into from
Sep 22, 2023
Merged

golangci-lint #10577

merged 1 commit into from
Sep 22, 2023

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Sep 10, 2023

  • G601: Implicit memory aliasing in for loop.

  • receiver-naming: receiver name X should be consistent with previous receiver name Y for T

  • X is a misspelling of Y (misspell)

@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@jmank88 jmank88 force-pushed the golangci-lint-2023-09-10 branch 8 times, most recently from f1975f5 to 6118c37 Compare September 16, 2023 12:01
@@ -25,7 +25,7 @@ import (
)

type Runner interface {
ExecuteRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger) (run pipeline.Run, trrs pipeline.TaskRunResults, err error)
ExecuteRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger) (run *pipeline.Run, trrs pipeline.TaskRunResults, err error)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were copying around these values even though we end up needing a pointer for later uses anyways. Using a pointer also fixes the linter warnings indirectly.

Comment on lines -36 to -43
randomnessFulfillmentRequestedEvent string = "RandomnessFulfillmentRequested"
randomWordsFulfilledEvent string = "RandomWordsFulfilled"
newTransmissionEvent string = "NewTransmission"
outputsServedEvent string = "OutputsServed"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused

@jmank88 jmank88 force-pushed the golangci-lint-2023-09-10 branch from 6118c37 to fd27dff Compare September 16, 2023 15:54
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Sep 16, 2023
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Sep 16, 2023
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Sep 16, 2023
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Sep 16, 2023
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Sep 16, 2023
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Sep 16, 2023
@jmank88 jmank88 marked this pull request as ready for review September 16, 2023 15:58
@jmank88 jmank88 force-pushed the golangci-lint-2023-09-10 branch from fd27dff to 9b5a6d0 Compare September 20, 2023 13:01
@jmank88 jmank88 force-pushed the golangci-lint-2023-09-10 branch from 9b5a6d0 to 37bf713 Compare September 21, 2023 19:21
@jmank88 jmank88 requested a review from a team September 21, 2023 19:21
@jmank88 jmank88 force-pushed the golangci-lint-2023-09-10 branch from 37bf713 to d5d85c0 Compare September 21, 2023 22:04
receiver-naming: receiver name X should be consistent with previous receiver name Y for T

`X` is a misspelling of `Y` (misspell)
@jmank88 jmank88 force-pushed the golangci-lint-2023-09-10 branch from d5d85c0 to ca72c10 Compare September 22, 2023 13:09
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 4.0% 3.97% Duplicated Lines (%) on New Code (is greater than 3%)

See analysis details on SonarQube

@krehermann krehermann self-requested a review September 22, 2023 23:06
@krehermann krehermann added this pull request to the merge queue Sep 22, 2023
Merged via the queue into develop with commit 2ff2681 Sep 22, 2023
81 of 82 checks passed
@krehermann krehermann deleted the golangci-lint-2023-09-10 branch September 22, 2023 23:27
Copy link

@jonesk7734 jonesk7734 left a comment

Choose a reason for hiding this comment

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

Ok

@jira jira bot mentioned this pull request Oct 18, 2023
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