-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Linter: Update implementation code #8146
Conversation
3e28ca9
to
537c4d8
Compare
Updates all test code to adhear to the knew linter rules. Branched from dapr#8146 to ensure that no test changes were made for that PR to test that no implementation functional changes were made. Removes rule in github workflows to only test new changes. Signed-off-by: joshvanl <me@joshvanl.dev>
Update Dapr implementation code to adhere to new linter rules. All test files have been purposefully omitted to ensure that the implementation code is still functionally correct. A follow-up commit will contain the update to all test code, and removal of the "only new changes" linted from the github linter workflow. Signed-off-by: joshvanl <me@joshvanl.dev>
537c4d8
to
c900e90
Compare
/ok-to-test |
/ok-to-perf |
Dapr E2E testCommit ref: c900e90 ✅ Infrastructure deployed
✅ Build succeeded for linux/amd64
✅ Build succeeded for windows/amd64
❌ Tests failed on linux/amd64Please check the logs for details on the error. ❌ Tests failed on windows/amd64Please check the logs for details on the error. |
Dapr perf testCommit ref: c900e90 ✅ Infrastructure deployed
✅ Build succeeded
❌ Perf tests failedPlease check the logs for details on the error. |
/ok-to-test |
/ok-to-perf |
Dapr E2E testCommit ref: c900e90 ✅ Infrastructure deployed
✅ Build succeeded for linux/amd64
✅ Build succeeded for windows/amd64
✅ Tests succeeded on windows/amd64
❌ Tests failed on linux/amd64Please check the logs for details on the error. |
Dapr perf testCommit ref: c900e90 ✅ Infrastructure deployed
✅ Build succeeded
❌ Perf tests failedPlease check the logs for details on the error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, provided that Mike's suggestions are accepted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The typo shaddow
made me think there could be other errors on which the tool failed silently, so I did a quick search and found out about the golangci-lint config verify
command. It brought a few additional errors we need to fix. I put a few of them as suggestions, and here are two more I can't add as comments in code:
Under linter-settings
:
# `check-exported: false` is not valid anymore, I suggest:
unused:
# Mark all exported fields as used.
exported-fields-are-used: false
# We used to have `allow-case-traling-whitespace: true` which is not allowed anymore. We can either delete the config completely, or force a new line as so:
wsl:
...
# If the number of lines in a case block is equal to or lager than this number,
# the case *must* end white a newline.
# https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#force-case-trailing-whitespace
# Default: 0
force-case-trailing-whitespace: 1
Signed-off-by: joshvanl <me@joshvanl.dev>
Thanks @elena-kolevska @mikeee, please take another look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Updates all test code to adhear to the knew linter rules. Branched from dapr#8146 to ensure that no test changes were made for that PR to test that no implementation functional changes were made. Removes rule in github workflows to only test new changes. Signed-off-by: joshvanl <me@joshvanl.dev>
* Linter: Updates test code for new linter rules Updates all test code to adhear to the knew linter rules. Branched from #8146 to ensure that no test changes were made for that PR to test that no implementation functional changes were made. Removes rule in github workflows to only test new changes. Signed-off-by: joshvanl <me@joshvanl.dev> * Review comments Signed-off-by: joshvanl <me@joshvanl.dev> * Fix app pubsub string Signed-off-by: joshvanl <me@joshvanl.dev> --------- Signed-off-by: joshvanl <me@joshvanl.dev>
* Linter: Updates test code for new linter rules Updates all test code to adhear to the knew linter rules. Branched from dapr#8146 to ensure that no test changes were made for that PR to test that no implementation functional changes were made. Removes rule in github workflows to only test new changes. Signed-off-by: joshvanl <me@joshvanl.dev> * Review comments Signed-off-by: joshvanl <me@joshvanl.dev> * Fix app pubsub string Signed-off-by: joshvanl <me@joshvanl.dev> --------- Signed-off-by: joshvanl <me@joshvanl.dev>
Update Dapr implementation code to adhere to new linter rules. All test files have been purposefully omitted to ensure that the implementation code is still functionally correct. A follow-up commit will contain the update to all test code, and removal of the "only new changes linted" from the github linter workflow.