1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.hack23.sonar.cloudformation;
21
22 import java.util.Arrays;
23 import java.util.List;
24
25 import org.sonar.api.config.PropertyDefinition;
26 import org.sonar.api.resources.Qualifiers;
27
28 import com.hack23.sonar.cloudformation.reports.process.CloudformationConstants;
29
30
31
32
33 public final class CloudformationProperties {
34
35
36
37
38 private CloudformationProperties() {
39
40 }
41
42
43
44
45
46
47 public static List<PropertyDefinition> getProperties() {
48 return Arrays.asList(PropertyDefinition.builder(CloudformationConstants.CFN_NAG_REPORT_FILES_PROPERTY)
49 .subCategory("Paths").name(CloudformationConstants.CFN_NAG_REPORT_FILES_PROPERTY)
50 .description("path to the '.nag or .nagscan' files").onQualifiers(Qualifiers.PROJECT).defaultValue("")
51 .build(),PropertyDefinition.builder(CloudformationConstants.CHECKOV_REPORT_FILES_PROPERTY)
52 .subCategory("Paths").name(CloudformationConstants.CHECKOV_REPORT_FILES_PROPERTY)
53 .description("path to the 'checkov-report' files").onQualifiers(Qualifiers.PROJECT).defaultValue("")
54 .build());
55 }
56 }