mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
Fix lint issues: govet linter (#478)
Reordering fields reduces struct size in memory Co-authored-by: Azeem Shaikh <azeemshaikh38@gmail.com>
This commit is contained in:
parent
91b3641196
commit
e75a9e19f9
@ -34,7 +34,7 @@ linters:
|
||||
- goprintffuncname
|
||||
- gosec
|
||||
- gosimple
|
||||
# - govet
|
||||
- govet
|
||||
- ineffassign
|
||||
# - lll
|
||||
- misspell
|
||||
|
@ -145,15 +145,15 @@ func validateGitHubActionWorkflow(path string, content []byte, logf func(s strin
|
||||
// We only retrieve what we need for logging.
|
||||
// Github workflows format: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
||||
type GitHubActionWorkflowConfig struct {
|
||||
Name string `yaml:name`
|
||||
Jobs map[string]struct {
|
||||
Name string `yaml:name`
|
||||
Name string `yaml:"name"`
|
||||
Steps []struct {
|
||||
Name string `yaml:name`
|
||||
Id string `yaml:id`
|
||||
Uses string `yaml:uses`
|
||||
Name string `yaml:"name"`
|
||||
Id string `yaml:"id"`
|
||||
Uses string `yaml:"uses"`
|
||||
}
|
||||
}
|
||||
Name string `yaml:"name"`
|
||||
}
|
||||
|
||||
if len(content) == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user