Closed KiranSatyaRaj closed 4 months ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Hi @KiranSatyaRaj. Thanks for your PR.
I'm waiting for a jenkins-x-plugins or todo member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign ankitm123
You can assign the PR to them by writing /assign @ankitm123
in a comment when ready.
The full list of commands accepted by this bot can be found here.
/assign @ankitm123
/ok-to-test
@KiranSatyaRaj: The following test failed, say /retest
to rerun them all:
Test name | Commit | Details | Rerun command |
---|---|---|---|
lint | 655965ce0b8b169e3d4eab8856718966bf56c53b | link | /test lint |
Base: 37.36% // Head: 37.31% // Decreases project coverage by -0.04%
:warning:
Coverage data is based on head (
655965c
) compared to base (a091446
). Patch coverage: 0.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@msvticket there are a few test cases failing when I ran make lint
Error:
-//nolint +// nolint func (p *inliner) processTaskSpec(ts *v1beta1.TaskSpec, path, name string) (bool, error) { templateImage := "" if ts.StepTemplate != nil { make: *** [Makefile:170: lint] Error 1
This is the output of the linter:
cmd/docs/main.go:7: File is not `gofmt`-ed with `-s` (gofmt)
// http://www.apache.org/licenses/LICENSE-2.0
cmd/docs/md_docs.go:7: File is not `gofmt`-ed with `-s` (gofmt)
// http://www.apache.org/licenses/LICENSE-2.0
pkg/cmd/effective/effective.go:4:2: SA1019: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
"io/ioutil"
^
hey @msvticket, make lint
gave me an output to install golangci-lint v1.46.2 just that, I currently have v1.50.1, so should it be update then
hey @msvticket,
make lint
gave me an output to install golangci-lint v1.46.2 just that, I currently have v1.50.1, so should it be update then
hey @msvticket can we discuss this if you're available?
hey @msvticket,
make lint
gave me an output to install golangci-lint v1.46.2 just that, I currently have v1.50.1, so should it be update then
I suspect that if you have a newer lint you will find more problems. But what you have to fix are the issues that the lint pipeline finds
hey @msvticket,
make lint
gave me an output to install golangci-lint v1.46.2 just that, I currently have v1.50.1, so should it be update thenI suspect that if you have a newer lint you will find more problems. But what you have to fix are the issues that the lint pipeline finds
I've installed the 1.46.2 version of golangci-lint(current version for jx-pipilne), I got a few warns on bodyclose, rowserrcheck, structcheck, unparam are disabled because of go1.18 and an error
pkg/cmd/effective/effective.go:4:2: SA1019: package io/ioutil is deprecated: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck) "io/ioutil"
so all the functions from io/ioutil
should be replaced by equivalent functions from io
or os
packages, right?
@KiranSatyaRaj Why don't you just fix the lint issues in https://github.com/jenkins-x-plugins/jx-pipeline/pull/509#issuecomment-1339730987 ?
hey @msvticket, can you please let me know the command you used to perform lint because I get an output different from #509 (comment) when I execute make lint
Signed-off-by: Kiran Satya Raj kiranjamy20021508@gmail.com fixes jenkins-x/jx#8421