From 8b87ac5fa347721602d60f5a6562d4705384cd59 Mon Sep 17 00:00:00 2001 From: Dima Golovinov Date: Fri, 24 May 2024 10:37:18 +0200 Subject: [PATCH] :bug: Provide unique analysis id in case report has to be sent manually --- cmd/send.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/send.go b/cmd/send.go index 756d5f75..456dff46 100644 --- a/cmd/send.go +++ b/cmd/send.go @@ -21,6 +21,7 @@ import ( "github.com/JetBrains/qodana-cli/v2024/cloud" "github.com/JetBrains/qodana-cli/v2024/core" "github.com/JetBrains/qodana-cli/v2024/platform" + "github.com/google/uuid" "github.com/spf13/cobra" "path/filepath" ) @@ -58,5 +59,6 @@ If you are using other Qodana Cloud instance than https://qodana.cloud/, overrid flags.StringVarP(&options.ResultsDir, "results-dir", "o", "", "Override directory to save Qodana inspection results to (default /JetBrains//results)") flags.StringVarP(&options.ReportDir, "report-dir", "r", "", "Override directory to save Qodana HTML report to (default /JetBrains//results/report)") flags.StringVar(&options.ConfigName, "config", "", "Set a custom configuration file instead of 'qodana.yaml'. Relative paths in the configuration will be based on the project directory.") + flags.StringVarP(&options.AnalysisId, "analysis-id", "a", uuid.New().String(), "Unique report identifier (GUID) to be used by Qodana Cloud") return cmd }