Skip to content

Commit

Permalink
Incomplete results logged as Info, not Warn
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
  • Loading branch information
pnacht committed Oct 24, 2023
1 parent 0971280 commit 6b6dba7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checks/evaluation/pinned_dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func PinningDependencies(name string, c *checker.CheckRequest,

for i := range r.Incomplete {
skipped := r.Incomplete[i]
dl.Warn(&checker.LogMessage{
dl.Info(&checker.LogMessage{
Text: generateTextIncompleteResults(skipped),
Type: finding.FileTypeSource,
})
Expand Down
4 changes: 2 additions & 2 deletions checks/evaluation/pinned_dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ func Test_PinningDependencies(t *testing.T) {
expected: scut.TestReturn{
Error: nil,
Score: 8,
NumberOfWarn: 3, // 2 for npm commands, 1 for skipped job
NumberOfInfo: 7,
NumberOfWarn: 2,
NumberOfInfo: 8, // 7 for all but npm, +1 for skipped job
NumberOfDebug: 0,
},
},
Expand Down

0 comments on commit 6b6dba7

Please sign in to comment.