From 219c7035639ea5e3d5aa533f79106925783d4201 Mon Sep 17 00:00:00 2001 From: Evsyukov Denis Date: Mon, 16 Sep 2024 17:16:13 +0300 Subject: [PATCH] wip Signed-off-by: Evsyukov Denis --- main.go | 5 ----- pkg/linters/openapi/validators/ha_and_https.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/main.go b/main.go index 3ff9fc0..b96e2f3 100644 --- a/main.go +++ b/main.go @@ -17,12 +17,7 @@ func main() { cfg, err := config.NewDefault() logger.CheckErr(err) - //logger.InfoF("Config: %#v", cfg) mng := manager.NewManager(dirs, cfg) - //for i := range mng.Modules { - // logger.InfoF("module[%d]: %s", i, mng.Modules[i]) - //} - result := mng.Run() fmt.Printf("%s\n", result.ConvertToError()) } diff --git a/pkg/linters/openapi/validators/ha_and_https.go b/pkg/linters/openapi/validators/ha_and_https.go index 692cabf..ae88d99 100644 --- a/pkg/linters/openapi/validators/ha_and_https.go +++ b/pkg/linters/openapi/validators/ha_and_https.go @@ -18,7 +18,7 @@ func NewHAValidator(cfg *config.OpenAPISettings) HAValidator { } } -func (ha HAValidator) Run(moduleName, file, absoluteKey string, value any) error { +func (ha HAValidator) Run(_, file, absoluteKey string, value any) error { m := make(map[any]any) rv := reflect.ValueOf(value) if rv.Kind() != reflect.Map {