File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ func RunChecks(project project.Type) {
72
72
73
73
checkdata .Initialize (project )
74
74
75
- for _ , checkConfiguration := range checkconfigurations .Configurations {
75
+ for _ , checkConfiguration := range checkconfigurations .Configurations () {
76
76
if ! shouldRun (checkConfiguration , project ) {
77
77
// TODO: this should only be printed to log and in verbose mode
78
78
fmt .Printf ("Skipping check: %s\n " , checkConfiguration .ID )
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ type Type struct {
34
34
CheckFunction checkfunctions.Type // The function that implements the check.
35
35
}
36
36
37
- // Checks is an array of structs that define the configuration of each check.
38
- var Configurations = []Type {
37
+ // configurations is an array of structs that define the configuration of each check.
38
+ var configurations = []Type {
39
39
{
40
40
ProjectType : projecttype .Library ,
41
41
Category : "library.properties" ,
@@ -112,3 +112,8 @@ var Configurations = []Type{
112
112
CheckFunction : checkfunctions .PdeSketchExtension ,
113
113
},
114
114
}
115
+
116
+ // Configurations returns the slice of check configurations.
117
+ func Configurations () []Type {
118
+ return configurations
119
+ }
You can’t perform that action at this time.
0 commit comments