Skip to content

Commit

Permalink
add comment rules for deepsource to not warn about md5 hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dhontecillas committed Sep 3, 2024
1 parent b933880 commit 26d314c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package lua

import (
"bytes"
"crypto/md5"
"crypto/md5" // skipcq: GSC-G501
"encoding/hex"
"errors"
"io"
Expand Down Expand Up @@ -80,7 +80,9 @@ func Parse(l logging.Logger, e config.ExtraConfig, namespace string) (Config, er
}
res.SourceLoader = onceLoader(loader)

checksums, ok := c["md5"].(map[string]interface{})
// TODO: at some point we might want to change the hashing
// function, but we need to do it in a backards compat mode:
checksums, ok := c["md5"].(map[string]interface{}) // skipcq: GO-S1023, GSC-G401
if !ok {
return res, nil
}
Expand Down

0 comments on commit 26d314c

Please sign in to comment.