You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
====================================================================================================
append to slice `us` with non-zero initialized length at https://github.com/getgauge/gauge/blob/master/cmd/list.go#L131:[9](https://github.com/alingse/go-linter-runner/actions/runs/9242995169/job/25426544240#step:4:10)
====================================================================================================
func uniqueNonEmptyElementsOf(input []string) []string {
unique := make(map[string]bool, len(input))
us := make([]string, len(unique))
for _, elem := range input {
if len(elem) != 0 && !unique[elem] {
us = append(us, elem)
unique[elem] = true
}
}
return us
}
the us is neither empty and neither unique
us := make([]string, len(unique)) should be us := make([]string, 0, len(unique))
To Reproduce
Steps (or project) to reproduce the behavior:
Initialise a gauge project
Run the gauge command
See error
$ gauge init java # or js, python etc
$ gauge run specs
Logs
Paste any log or error messages here
Expected behavior
A clear and concise description of what you expect to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions:
gauge -v
OS [e.g. MacOS 10.15.6 (19G2021) please be specific ]
Runner info (Please specify the correct version of Java/Node/Python/Dotnet/Ruby)
IDE info (If using VS Code or Intellij IDEA)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I was running github actions to run linter makezero for top github golang repos.
see issues alingse/go-linter-runner#1
and the github actions output https://github.com/alingse/go-linter-runner/actions/runs/9242995169/job/25426544240
the us is neither empty and neither unique
us := make([]string, len(unique))
should beus := make([]string, 0, len(unique))
To Reproduce
Steps (or project) to reproduce the behavior:
Logs
Expected behavior
A clear and concise description of what you expect to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: