Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: validate --Output #808

Merged
merged 1 commit into from
Sep 26, 2023
Merged

fix: validate --Output #808

merged 1 commit into from
Sep 26, 2023

Conversation

melotic
Copy link
Member

@melotic melotic commented Sep 26, 2023

This used to be validated in the Orchestrator

@melotic melotic added the type:bug Bug fix of existing functionality label Sep 26, 2023
@melotic melotic requested a review from a team as a code owner September 26, 2023 18:19
@melotic melotic requested a review from JamieMagee September 26, 2023 18:19
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #808 (5a72cbb) into main (53acc7b) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #808      +/-   ##
==========================================
+ Coverage   75.81%   75.83%   +0.02%     
==========================================
  Files         239      239              
  Lines        9959     9962       +3     
==========================================
+ Hits         7550     7555       +5     
+ Misses       2409     2407       -2     
Files Coverage Δ
...entDetection.Orchestrator/Commands/BaseSettings.cs 86.66% <100.00%> (+20.00%) ⬆️

@melotic melotic enabled auto-merge (squash) September 26, 2023 18:23
@melotic melotic merged commit 3ccbe42 into main Sep 26, 2023
24 checks passed
@melotic melotic deleted the justinperez/validate-output branch September 26, 2023 18:24
@github-actions
Copy link

👋 Hi! It looks like you modified some files in the Detectors folder.
You may need to bump the detector versions if any of the following scenarios apply:

  • The detector detects more or fewer components than before
  • The detector generates different parent/child graph relationships than before
  • The detector generates different devDependencies values than before

If none of the above scenarios apply, feel free to ignore this comment 🙂

@@ -44,6 +45,11 @@ public override ValidationResult Validate()
return ValidationResult.Error($"{nameof(this.Timeout)} must be a positive integer");
}

if (!string.IsNullOrEmpty(this.Output) && !Directory.Exists(this.Output))
{
return ValidationResult.Error($"{nameof(this.Output)} must be a valid path");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description probably needs to be updated

Output path for log files. Defaults to %TMP%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Bug fix of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants