-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathPortableScannerSettings.cs
More file actions
36 lines (35 loc) · 1.92 KB
/
PortableScannerSettings.cs
File metadata and controls
36 lines (35 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace Microsoft.DevSkim.LanguageProtoInterop
{
public class PortableScannerSettings : IDevSkimOptions
{
public CommentStylesEnum SuppressionCommentStyle { get; set; } = CommentStylesEnum.Line;
public string CustomRulesPathsString { get; set; } = string.Empty;
public string IgnoreRulesListString { get; set; } = string.Empty;
public string IgnoreFilesString { get; set; } = string.Empty;
// Used to populate suppressions
public string ManualReviewerName { get; set; } = string.Empty;
// Suppression duration in days
public int SuppressionDurationInDays { get; set; } = 30;
public bool IgnoreDefaultRules { get; set; } = false;
public bool ScanOnOpen { get; set; } = true;
public bool ScanOnSave { get; set; } = true;
public bool ScanOnChange { get; set; } = true;
public bool RemoveFindingsOnClose { get; set; } = true;
public string CustomLanguagesPath { get; set; } = string.Empty;
public string CustomCommentsPath { get; set; } = string.Empty;
public string GuidanceBaseURL { get; set; } = "https://github.com/microsoft/devskim/tree/main/guidance";
// Default all severity rules to enabled
public bool EnableCriticalSeverityRules { get; set; } = true;
public bool EnableImportantSeverityRules { get; set; } = true;
public bool EnableModerateSeverityRules { get; set; } = true;
public bool EnableManualReviewSeverityRules { get; set; } = true;
public bool EnableBestPracticeSeverityRules { get; set; } = true;
// Default high and medium confidence to enabled, low disabled
public bool EnableHighConfidenceRules { get; set; } = true;
public bool EnableLowConfidenceRules { get; set; } = false;
public bool EnableMediumConfidenceRules { get; set; } = true;
}
}