@@ -114,6 +114,10 @@ func LibraryPropertiesNameFieldMissing() (result checkresult.Type, output string
114
114
return checkresult .NotRun , "Couldn't load library.properties"
115
115
}
116
116
117
+ if checkdata .LoadedLibrary ().IsLegacy {
118
+ return checkresult .NotRun , "Library has legacy format"
119
+ }
120
+
117
121
if schema .RequiredPropertyMissing ("name" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
118
122
return checkresult .Fail , ""
119
123
}
@@ -343,6 +347,10 @@ func LibraryPropertiesVersionFieldMissing() (result checkresult.Type, output str
343
347
return checkresult .NotRun , "Couldn't load library.properties"
344
348
}
345
349
350
+ if checkdata .LoadedLibrary ().IsLegacy {
351
+ return checkresult .NotRun , "Library has legacy format"
352
+ }
353
+
346
354
if schema .RequiredPropertyMissing ("version" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
347
355
return checkresult .Fail , ""
348
356
}
@@ -484,6 +492,10 @@ func LibraryPropertiesAuthorFieldMissing() (result checkresult.Type, output stri
484
492
return checkresult .NotRun , "Couldn't load library.properties"
485
493
}
486
494
495
+ if checkdata .LoadedLibrary ().IsLegacy {
496
+ return checkresult .NotRun , "Library has legacy format"
497
+ }
498
+
487
499
if schema .RequiredPropertyMissing ("author" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
488
500
return checkresult .Fail , ""
489
501
}
@@ -513,6 +525,10 @@ func LibraryPropertiesMaintainerFieldMissing() (result checkresult.Type, output
513
525
return checkresult .NotRun , "Couldn't load library.properties"
514
526
}
515
527
528
+ if checkdata .LoadedLibrary ().IsLegacy {
529
+ return checkresult .NotRun , "Library has legacy format"
530
+ }
531
+
516
532
if schema .RequiredPropertyMissing ("maintainer" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
517
533
return checkresult .Fail , ""
518
534
}
@@ -616,6 +632,10 @@ func LibraryPropertiesSentenceFieldMissing() (result checkresult.Type, output st
616
632
return checkresult .NotRun , "Couldn't load library.properties"
617
633
}
618
634
635
+ if checkdata .LoadedLibrary ().IsLegacy {
636
+ return checkresult .NotRun , "Library has legacy format"
637
+ }
638
+
619
639
if schema .RequiredPropertyMissing ("sentence" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
620
640
return checkresult .Fail , ""
621
641
}
@@ -650,6 +670,10 @@ func LibraryPropertiesParagraphFieldMissing() (result checkresult.Type, output s
650
670
return checkresult .NotRun , "Couldn't load library.properties"
651
671
}
652
672
673
+ if checkdata .LoadedLibrary ().IsLegacy {
674
+ return checkresult .NotRun , "Library has legacy format"
675
+ }
676
+
653
677
if schema .RequiredPropertyMissing ("paragraph" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
654
678
return checkresult .Fail , ""
655
679
}
@@ -686,6 +710,10 @@ func LibraryPropertiesCategoryFieldMissing() (result checkresult.Type, output st
686
710
return checkresult .NotRun , "Couldn't load library.properties"
687
711
}
688
712
713
+ if checkdata .LoadedLibrary ().IsLegacy {
714
+ return checkresult .NotRun , "Library has legacy format"
715
+ }
716
+
689
717
if schema .RequiredPropertyMissing ("category" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
690
718
return checkresult .Fail , ""
691
719
}
@@ -734,6 +762,10 @@ func LibraryPropertiesUrlFieldMissing() (result checkresult.Type, output string)
734
762
return checkresult .NotRun , "Couldn't load library.properties"
735
763
}
736
764
765
+ if checkdata .LoadedLibrary ().IsLegacy {
766
+ return checkresult .NotRun , "Library has legacy format"
767
+ }
768
+
737
769
if schema .RequiredPropertyMissing ("url" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
738
770
return checkresult .Fail , ""
739
771
}
@@ -788,6 +820,10 @@ func LibraryPropertiesArchitecturesFieldMissing() (result checkresult.Type, outp
788
820
return checkresult .NotRun , "Couldn't load library.properties"
789
821
}
790
822
823
+ if checkdata .LoadedLibrary ().IsLegacy {
824
+ return checkresult .NotRun , "Library has legacy format"
825
+ }
826
+
791
827
if schema .RequiredPropertyMissing ("architectures" , checkdata .LibraryPropertiesSchemaValidationResult ()[compliancelevel .Specification ], configuration .SchemasPath ()) {
792
828
return checkresult .Fail , ""
793
829
}
0 commit comments