From db034c2e43b837c4f49c4bb575311205233524cd Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Mon, 13 Mar 2023 16:56:29 +0530 Subject: [PATCH] fix lint --- .github/workflows/super-linter.yml | 2 -- client/docs/swagger-ui/swagger-ui-bundle.js | 2 +- testutil/network/network.go | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 6e7ae437..37cf5b91 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -34,7 +34,5 @@ jobs: VALIDATE_OPENAPI: false VALIDATE_JSCPD: false VALIDATE_GO: false - VALIDATE_BASH: false - VALIDATE_DOCKER: false DEFAULT_BRANCH: "main" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/client/docs/swagger-ui/swagger-ui-bundle.js b/client/docs/swagger-ui/swagger-ui-bundle.js index 4491b4b2..145aad07 100644 --- a/client/docs/swagger-ui/swagger-ui-bundle.js +++ b/client/docs/swagger-ui/swagger-ui-bundle.js @@ -3048,7 +3048,7 @@ }) }, t.getCommonExtensions = function(e) { return e.filter(function(e, t) { - return /^pattern|maxLength|minLength|maximum|minimum/.test(t) + return /^pattern$|^maxLength$|^minLength$|^maximum$|^minimum$/.test(t) }) } }).call(t, n(54).Buffer) diff --git a/testutil/network/network.go b/testutil/network/network.go index 8160bc0f..f2f77746 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -331,8 +331,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { // nosemgrep appCfg.JSONRPC.Address = cfg.JSONRPCAddress } else { _, jsonRPCPort, err := server.FreeTCPAddr() - if err != nil { - + if err != nil { // nosemgrep return nil, err // nosemgrep } appCfg.JSONRPC.Address = fmt.Sprintf("127.0.0.1:%s", jsonRPCPort)