Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
haim-kermany committed Oct 14, 2024
1 parent 142c5dd commit 2d80e5e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkg/ibmvpc/analysis_output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ var t testfunc.VpcAnalysisTest = testfunc.VpcAnalysisTest{
Format: vpcmodel.DRAWIO,
},
}
func g(t testfunc.VpcAnalysisTest) *testfunc.VpcAnalysisTest{
return &t

func g(t testfunc.VpcAnalysisTest) *testfunc.VpcAnalysisTest {

Check failure on line 36 in pkg/ibmvpc/analysis_output_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

hugeParam: t is heavy (176 bytes); consider passing it by pointer (gocritic)
return &t
}

var t2 = t

Check failure on line 40 in pkg/ibmvpc/analysis_output_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

var `t2` is unused (unused)
var tests = []*testfunc.VpcAnalysisTest{
g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),
g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),
g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),
g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),g(t), g(t),
g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t),
g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t),
g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t),
g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t), g(t),
}

var tests2 = []*testfunc.VpcAnalysisTest{

Check failure on line 48 in pkg/ibmvpc/analysis_output_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

var `tests2` is unused (unused)
Expand Down

0 comments on commit 2d80e5e

Please sign in to comment.