Skip to content

Commit

Permalink
🐛 Provide unique analysis id in case report has to be sent manually (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hybloid authored May 24, 2024
1 parent 3d1fba7 commit dc4bb22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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 <userCacheDir>/JetBrains/<linter>/results)")
flags.StringVarP(&options.ReportDir, "report-dir", "r", "", "Override directory to save Qodana HTML report to (default <userCacheDir>/JetBrains/<linter>/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
}

0 comments on commit dc4bb22

Please sign in to comment.