Skip to content

Commit

Permalink
🐛 Do not report old report URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Dec 11, 2023
1 parent d651605 commit ed74ca3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Note that most options can be configured via qodana.yaml (https://www.jetbrains.
But you can always override qodana.yaml options with the following command-line options.
`,
Run: func(cmd *cobra.Command, args []string) {
reportUrl := cloud.GetReportUrl(options.ResultsDir)

ctx := cmd.Context()
checkProjectDir(options.ProjectDir)
options.FetchAnalyzerSettings()
Expand All @@ -53,8 +55,8 @@ But you can always override qodana.yaml options with the following command-line
options.ShowReport = core.AskUserConfirm("Do you want to open the latest report")
}

reportUrl := cloud.GetReportUrl(options.ResultsDir)
if reportUrl != "" {
newReportUrl := cloud.GetReportUrl(options.ResultsDir)
if newReportUrl != reportUrl {
core.SuccessMessage("Report is successfully uploaded to %s", reportUrl)
}

Expand Down

0 comments on commit ed74ca3

Please sign in to comment.