@@ -8,13 +8,15 @@ import (
8
8
"github.com/arduino/arduino-check/project/library/libraryproperties"
9
9
)
10
10
11
+ // LibraryPropertiesFormat checks for invalid library.properties format.
11
12
func LibraryPropertiesFormat () (result checkresult.Type , output string ) {
12
13
if checkdata .LibraryPropertiesLoadError () != nil {
13
14
return checkresult .Fail , checkdata .LibraryPropertiesLoadError ().Error ()
14
15
}
15
16
return checkresult .Pass , ""
16
17
}
17
18
19
+ // LibraryPropertiesNameFieldMissing checks for missing library.properties "name" field.
18
20
func LibraryPropertiesNameFieldMissing () (result checkresult.Type , output string ) {
19
21
if checkdata .LibraryPropertiesLoadError () != nil {
20
22
return checkresult .NotRun , ""
@@ -26,6 +28,7 @@ func LibraryPropertiesNameFieldMissing() (result checkresult.Type, output string
26
28
return checkresult .Pass , ""
27
29
}
28
30
31
+ // LibraryPropertiesNameFieldDisallowedCharacters checks for disallowed characters in the library.properties "name" field.
29
32
func LibraryPropertiesNameFieldDisallowedCharacters () (result checkresult.Type , output string ) {
30
33
if checkdata .LibraryPropertiesLoadError () != nil {
31
34
return checkresult .NotRun , ""
@@ -38,6 +41,7 @@ func LibraryPropertiesNameFieldDisallowedCharacters() (result checkresult.Type,
38
41
return checkresult .Pass , ""
39
42
}
40
43
44
+ // LibraryPropertiesVersionFieldMissing checks for missing library.properties "version" field.
41
45
func LibraryPropertiesVersionFieldMissing () (result checkresult.Type , output string ) {
42
46
if checkdata .LibraryPropertiesLoadError () != nil {
43
47
return checkresult .NotRun , ""
0 commit comments