diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c84dc3192508..f5dbbdde36ee 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -31,7 +31,8 @@ jobs: uses: github/codeql-action/init@v2 with: languages: "go" - queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality + queries: +security-and-quality,github/codeql/go/ql/src/experimental/InconsistentCode/DeferInLoop.ql@main,github/codeql/go/ql/src/experimental/Unsafe/WrongUsageOfUnsafe.ql@main,github/codeql/go/ql/src/experimental/CWE-369/DivideByZero.ql@main + packs: +crypto-com/cosmos-sdk-codeql # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. diff --git a/types/simulation/rand_util.go b/types/simulation/rand_util.go index e3d28bb2eead..e5ec88fd70e3 100644 --- a/types/simulation/rand_util.go +++ b/types/simulation/rand_util.go @@ -22,7 +22,7 @@ const ( // shamelessly copied from // https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang#31832326 -// RandStringOfLength generates a random string of a particular length +// RandStringOfLength generates a random string of a particular length. func RandStringOfLength(r *rand.Rand, n int) string { b := make([]byte, n) // A src.Int63() generates 63 random bits, enough for letterIdxMax characters!