Skip to content

Commit

Permalink
🐛 Return --coverage-dir (QD-7943)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Dec 11, 2023
1 parent f4c505c commit 457fcb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ But you can always override qodana.yaml options with the following command-line
flags.StringVar(&options.RunPromo, "run-promo", "", "Set to 'true' to have the application run the inspections configured by the promo profile; set to 'false' otherwise (default: 'true' only if Qodana is executed with the default profile)")
flags.StringVar(&options.Script, "script", "default", "Override the run scenario")
flags.StringVar(&options.StubProfile, "stub-profile", "", "Absolute path to the fallback profile file. This option is applied in case the profile was not specified using any available options")
flags.StringVar(&options.CoverageDir, "coverage-dir", "", "Directory with coverage data to process")

flags.BoolVar(&options.ApplyFixes, "apply-fixes", false, "Apply all available quick-fixes, including cleanup")
flags.BoolVar(&options.Cleanup, "cleanup", false, "Run project cleanup")
Expand Down
4 changes: 4 additions & 0 deletions core/ide.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ func getIdeArgs(opts *QodanaOptions) []string {
arguments = append(arguments, "--analysis-id", opts.AnalysisId)
}

if opts.CoverageDir != "" {
arguments = append(arguments, "--coverage-dir", opts.CoverageDir)
}

for _, property := range opts.Property {
arguments = append(arguments, "--property="+property)
}
Expand Down

0 comments on commit 457fcb9

Please sign in to comment.