You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During initial development, it was an unnecessary amount of work to assign unique IDs to each check configuration as it
was added. Now that the bulk of the checks have been added, it's the time to do this.
Copy file name to clipboardExpand all lines: check/checkconfigurations/checkconfigurations.go
+90-90Lines changed: 90 additions & 90 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ var configurations = []Type{
60
60
ProjectType: projecttype.Library,
61
61
Category: "structure",
62
62
Subcategory: "general",
63
-
ID: "",
63
+
ID: "LS001",
64
64
Brief: "invalid",
65
65
Description: "",
66
66
MessageTemplate: "Path does not contain a valid Arduino library. See: https://arduino.github.io/arduino-cli/latest/library-specification",
@@ -75,7 +75,7 @@ var configurations = []Type{
75
75
ProjectType: projecttype.Library,
76
76
Category: "structure",
77
77
Subcategory: "root folder",
78
-
ID: "",
78
+
ID: "LS002",
79
79
Brief: "folder name too long",
80
80
Description: "This will be problematic for people doing manual installation of the library.",
81
81
MessageTemplate: "Folder name {{.}} exceeds maximum length. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-root-folder",
@@ -90,7 +90,7 @@ var configurations = []Type{
90
90
ProjectType: projecttype.Library,
91
91
Category: "structure",
92
92
Subcategory: "root folder",
93
-
ID: "",
93
+
ID: "LS003",
94
94
Brief: "disallowed characters in folder name",
95
95
Description: "This will be problematic for people doing manual installation of the library.",
96
96
MessageTemplate: "Prohibited characters in folder name: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-root-folder",
@@ -105,7 +105,7 @@ var configurations = []Type{
105
105
ProjectType: projecttype.Library,
106
106
Category: "structure",
107
107
Subcategory: "miscellaneous",
108
-
ID: "",
108
+
ID: "LS004",
109
109
Brief: "submodule",
110
110
Description: "",
111
111
MessageTemplate: `Git submodule detected. Library Manager installations and installations from GitHub's "Download ZIP" will only contain an empty folder in place of the submodule.`,
@@ -120,7 +120,7 @@ var configurations = []Type{
120
120
ProjectType: projecttype.Library,
121
121
Category: "structure",
122
122
Subcategory: "miscellaneous",
123
-
ID: "",
123
+
ID: "LS005",
124
124
Brief: "symlink",
125
125
Description: "",
126
126
MessageTemplate: "Symlink(s) found at {{.}}. These block acceptance to the Arduino Library Manager index.",
@@ -135,7 +135,7 @@ var configurations = []Type{
135
135
ProjectType: projecttype.Library,
136
136
Category: "structure",
137
137
Subcategory: "miscellaneous",
138
-
ID: "",
138
+
ID: "LS006",
139
139
Brief: ".development file",
140
140
Description: "",
141
141
MessageTemplate: ".development flag file found. Presence of this file blocks addition to the Library Manager index.",
@@ -150,7 +150,7 @@ var configurations = []Type{
150
150
ProjectType: projecttype.Library,
151
151
Category: "structure",
152
152
Subcategory: "miscellaneous",
153
-
ID: "",
153
+
ID: "LS007",
154
154
Brief: ".exe file",
155
155
Description: "",
156
156
MessageTemplate: ".exe file(s) found: {{.}}. Presence of these files blocks inclusion in Library Manager index.",
@@ -165,7 +165,7 @@ var configurations = []Type{
165
165
ProjectType: projecttype.Library,
166
166
Category: "structure",
167
167
Subcategory: "source code",
168
-
ID: "",
168
+
ID: "LS008",
169
169
Brief: "name-header mismatch",
170
170
Description: `The name value determines the installation folder name and the folder match to the filename in the #include directive influences "folder name priority".`,
171
171
MessageTemplate: "No header file found matching library name ({{.}}). Best practices are for primary header filename to match library name.",
@@ -180,7 +180,7 @@ var configurations = []Type{
180
180
ProjectType: projecttype.Library,
181
181
Category: "structure",
182
182
Subcategory: "source code",
183
-
ID: "",
183
+
ID: "LS009",
184
184
Brief: "incorrect src folder case",
185
185
Description: "",
186
186
MessageTemplate: "Incorrect src folder case: {{.}}. This will cause the library to not be recognized on case-sensitive operating systems. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-root-folder",
@@ -195,7 +195,7 @@ var configurations = []Type{
195
195
ProjectType: projecttype.Library,
196
196
Category: "structure",
197
197
Subcategory: "source code",
198
-
ID: "",
198
+
ID: "LS010",
199
199
Brief: "recursive with utility folder",
200
200
Description: "",
201
201
MessageTemplate: `Utility folder found in "1.5" format library. Compilation of this folder is only supported on "1.0" format libraries. See: https://arduino.github.io/arduino-cli/latest/library-specification/#source-code`,
@@ -210,7 +210,7 @@ var configurations = []Type{
210
210
ProjectType: projecttype.Library,
211
211
Category: "structure",
212
212
Subcategory: "extras folder",
213
-
ID: "",
213
+
ID: "LS011",
214
214
Brief: "incorrect extras folder name",
215
215
Description: "",
216
216
MessageTemplate: "Potentially misspelled extras folder name found: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#extra-documentation",
@@ -225,7 +225,7 @@ var configurations = []Type{
225
225
ProjectType: projecttype.Library,
226
226
Category: "structure",
227
227
Subcategory: "extras folder",
228
-
ID: "",
228
+
ID: "LS012",
229
229
Brief: "incorrect extras folder name case",
230
230
Description: "",
231
231
MessageTemplate: "Incorrect extras folder name case: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#extra-documentation",
@@ -255,7 +255,7 @@ var configurations = []Type{
255
255
ProjectType: projecttype.Library,
256
256
Category: "library.properties",
257
257
Subcategory: "general",
258
-
ID: "",
258
+
ID: "LP002",
259
259
Brief: "incorrect library.properties file name",
260
260
Description: "",
261
261
MessageTemplate: "Incorrectly spelled library.properties file name found: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata",
@@ -270,7 +270,7 @@ var configurations = []Type{
270
270
ProjectType: projecttype.Library,
271
271
Category: "library.properties",
272
272
Subcategory: "general",
273
-
ID: "",
273
+
ID: "LP003",
274
274
Brief: "incorrect library.properties file name case",
275
275
Description: `This causes "1.5" format (AKA "recursive layout") libraries to not be recognized on filename case-sensitive operating systems.`,
276
276
MessageTemplate: "Incorrect library.properties file name case: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata",
@@ -285,7 +285,7 @@ var configurations = []Type{
285
285
ProjectType: projecttype.Library,
286
286
Category: "library.properties",
287
287
Subcategory: "general",
288
-
ID: "",
288
+
ID: "LP004",
289
289
Brief: "redundant",
290
290
Description: "",
291
291
MessageTemplate: "Redundant library.properties file found at {{.}}. Only the file in the root of the library is used. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata",
@@ -300,7 +300,7 @@ var configurations = []Type{
300
300
ProjectType: projecttype.Library,
301
301
Category: "library.properties",
302
302
Subcategory: "general",
303
-
ID: "LP001",
303
+
ID: "LP005",
304
304
Brief: "invalid format",
305
305
Description: "",
306
306
MessageTemplate: "library.properties has an invalid format: {{.}}",
@@ -315,7 +315,7 @@ var configurations = []Type{
315
315
ProjectType: projecttype.Library,
316
316
Category: "library.properties",
317
317
Subcategory: "general",
318
-
ID: "",
318
+
ID: "LP006",
319
319
Brief: "misspelled field",
320
320
Description: "",
321
321
MessageTemplate: "Potentially misspelled library.properties field name detected. See: https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -330,7 +330,7 @@ var configurations = []Type{
330
330
ProjectType: projecttype.Library,
331
331
Category: "library.properties",
332
332
Subcategory: "name field",
333
-
ID: "LP002",
333
+
ID: "LP007",
334
334
Brief: "missing name field",
335
335
Description: "",
336
336
MessageTemplate: "missing name field in library.properties",
@@ -345,7 +345,7 @@ var configurations = []Type{
345
345
ProjectType: projecttype.Library,
346
346
Category: "library.properties",
347
347
Subcategory: "name field",
348
-
ID: "",
348
+
ID: "LP008",
349
349
Brief: "name < min length",
350
350
Description: "",
351
351
MessageTemplate: "library.properties name value is less than minimum length.",
@@ -360,7 +360,7 @@ var configurations = []Type{
360
360
ProjectType: projecttype.Library,
361
361
Category: "library.properties",
362
362
Subcategory: "name field",
363
-
ID: "",
363
+
ID: "LP009",
364
364
Brief: "name > max length",
365
365
Description: "",
366
366
MessageTemplate: "library.properties name value {{.}} is longer than maximum length.",
@@ -375,7 +375,7 @@ var configurations = []Type{
375
375
ProjectType: projecttype.Library,
376
376
Category: "library.properties",
377
377
Subcategory: "name field",
378
-
ID: "",
378
+
ID: "LP010",
379
379
Brief: "name > recommended length",
380
380
Description: "",
381
381
MessageTemplate: "library.properties name value {{.}} is longer than recommended max length.",
@@ -390,7 +390,7 @@ var configurations = []Type{
390
390
ProjectType: projecttype.Library,
391
391
Category: "library.properties",
392
392
Subcategory: "name field",
393
-
ID: "LP003",
393
+
ID: "LP011",
394
394
Brief: "disallowed characters",
395
395
Description: "",
396
396
MessageTemplate: "disallowed characters in library.properties name value: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -405,7 +405,7 @@ var configurations = []Type{
405
405
ProjectType: projecttype.Library,
406
406
Category: "library.properties",
407
407
Subcategory: "name field",
408
-
ID: "",
408
+
ID: "LP012",
409
409
Brief: `starts with "Arduino"`,
410
410
Description: `Case insensitive. 3rd party libraries added to Library Manager index prior to the enactment of this rule are "grandfathered".`,
411
411
MessageTemplate: `Library name {{.}} starts with "Arduino". These names are reserved for official libraries.`,
@@ -420,7 +420,7 @@ var configurations = []Type{
420
420
ProjectType: projecttype.Library,
421
421
Category: "library.properties",
422
422
Subcategory: "name field",
423
-
ID: "",
423
+
ID: "LP013",
424
424
Brief: "missing official prefix",
425
425
Description: "",
426
426
MessageTemplate: `Library name {{.}} is missing the "Arduino_" prefix. All new official library names must use this prefix.`,
@@ -435,7 +435,7 @@ var configurations = []Type{
435
435
ProjectType: projecttype.Library,
436
436
Category: "library.properties",
437
437
Subcategory: "name field",
438
-
ID: "",
438
+
ID: "LP014",
439
439
Brief: `contains "Arduino"`,
440
440
Description: "Case insensitive",
441
441
MessageTemplate: `Library name {{.}} contains "Arduino". This is superfluous.`,
@@ -450,7 +450,7 @@ var configurations = []Type{
450
450
ProjectType: projecttype.Library,
451
451
Category: "library.properties",
452
452
Subcategory: "name field",
453
-
ID: "",
453
+
ID: "LP015",
454
454
Brief: "contains spaces",
455
455
Description: "Best practices is for the name value, installation folder, and primary header filename to all match, but this is not possible with names containing spaces.",
456
456
MessageTemplate: "library.properties name {{.}} contains spaces. Although supported, best practices is to not use spaces.",
@@ -465,7 +465,7 @@ var configurations = []Type{
465
465
ProjectType: projecttype.Library,
466
466
Category: "library.properties",
467
467
Subcategory: "name field",
468
-
ID: "",
468
+
ID: "LP016",
469
469
Brief: `contains "library"`,
470
470
Description: "Case insensitive",
471
471
MessageTemplate: `Library name {{.}} contains "library". This is superfluous.`,
@@ -480,7 +480,7 @@ var configurations = []Type{
480
480
ProjectType: projecttype.Library,
481
481
Category: "library.properties",
482
482
Subcategory: "name field",
483
-
ID: "LP005",
483
+
ID: "LP017",
484
484
Brief: "duplicate name",
485
485
Description: "This requirement only applies to the library.properties name value. There is no requirement to change the repository or header file names.",
486
486
MessageTemplate: "Library name {{.}} is in use by a library in the Library Manager index. Each library must have a unique name value.",
@@ -495,7 +495,7 @@ var configurations = []Type{
495
495
ProjectType: projecttype.Library,
496
496
Category: "library.properties",
497
497
Subcategory: "name field",
498
-
ID: "LP006",
498
+
ID: "LP018",
499
499
Brief: "not in LM index",
500
500
Description: "The name value is the identifier used to install the library and define dependencies, so it should not be changed.",
501
501
MessageTemplate: "Library name {{.}} not found in the Library Manager index. Library names are not allowed to change after being added to the index. See: https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ#how-can-i-change-my-librarys-name",
@@ -510,7 +510,7 @@ var configurations = []Type{
510
510
ProjectType: projecttype.Library,
511
511
Category: "library.properties",
512
512
Subcategory: "version field",
513
-
ID: "LP004",
513
+
ID: "LP019",
514
514
Brief: "missing version field",
515
515
Description: "",
516
516
MessageTemplate: "missing version field in library.properties",
@@ -525,7 +525,7 @@ var configurations = []Type{
525
525
ProjectType: projecttype.Library,
526
526
Category: "library.properties",
527
527
Subcategory: "version field",
528
-
ID: "",
528
+
ID: "LP020",
529
529
Brief: "invalid",
530
530
Description: `Must be compliant with "relaxed semver".`,
531
531
MessageTemplate: "library.properties version value {{.}} is invalid. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -540,7 +540,7 @@ var configurations = []Type{
540
540
ProjectType: projecttype.Library,
541
541
Category: "library.properties",
542
542
Subcategory: "version field",
543
-
ID: "",
543
+
ID: "LP021",
544
544
Brief: "non-semver",
545
545
Description: "",
546
546
MessageTemplate: "library.properties version value {{.}} is not compliant with the semver specification. See https://semver.org/",
@@ -555,7 +555,7 @@ var configurations = []Type{
555
555
ProjectType: projecttype.Library,
556
556
Category: "library.properties",
557
557
Subcategory: "version field",
558
-
ID: "",
558
+
ID: "LP022",
559
559
Brief: "tag mismatch",
560
560
Description: "The Library Manager indexer will reject any tag that has a library.properties version equal to a previous tag in the index.",
561
561
MessageTemplate: "The latest Git tag appears to be greater than the library.properties version value: {{.}}. You must update the version value before making the tag.",
@@ -570,7 +570,7 @@ var configurations = []Type{
570
570
ProjectType: projecttype.Library,
571
571
Category: "library.properties",
572
572
Subcategory: "author field",
573
-
ID: "",
573
+
ID: "LP023",
574
574
Brief: "missing author field",
575
575
Description: "",
576
576
MessageTemplate: "missing required author field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -585,7 +585,7 @@ var configurations = []Type{
585
585
ProjectType: projecttype.Library,
586
586
Category: "library.properties",
587
587
Subcategory: "author field",
588
-
ID: "",
588
+
ID: "LP024",
589
589
Brief: "author < min length",
590
590
Description: "",
591
591
MessageTemplate: "library.properties author value is less than minimum length.",
@@ -600,7 +600,7 @@ var configurations = []Type{
600
600
ProjectType: projecttype.Library,
601
601
Category: "library.properties",
602
602
Subcategory: "maintainer field",
603
-
ID: "",
603
+
ID: "LP025",
604
604
Brief: "missing maintainer field",
605
605
Description: "",
606
606
MessageTemplate: "missing required maintainer field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -615,7 +615,7 @@ var configurations = []Type{
615
615
ProjectType: projecttype.Library,
616
616
Category: "library.properties",
617
617
Subcategory: "maintainer field",
618
-
ID: "",
618
+
ID: "LP026",
619
619
Brief: "maintainer < min length",
620
620
Description: "",
621
621
MessageTemplate: "library.properties maintainer value is less than minimum length.",
@@ -630,7 +630,7 @@ var configurations = []Type{
630
630
ProjectType: projecttype.Library,
631
631
Category: "library.properties",
632
632
Subcategory: "maintainer field",
633
-
ID: "",
633
+
ID: "LP027",
634
634
Brief: `starts with "Arduino"`,
635
635
Description: "Case insensitive.",
636
636
MessageTemplate: `library.properties maintainer value {{.}} starts with "Arduino". 3rd party libraries are not maintained by Arduino.`,
@@ -645,7 +645,7 @@ var configurations = []Type{
645
645
ProjectType: projecttype.Library,
646
646
Category: "library.properties",
647
647
Subcategory: "email field",
648
-
ID: "",
648
+
ID: "LP028",
649
649
Brief: `"email" field used as alias for "maintainer"`,
650
650
Description: "This was in an early draft of the beta 1.5 library specification.",
651
651
MessageTemplate: `library.properties "email" field used as alias for "maintainer". This is deprecated.`,
@@ -660,7 +660,7 @@ var configurations = []Type{
660
660
ProjectType: projecttype.Library,
661
661
Category: "library.properties",
662
662
Subcategory: "email field",
663
-
ID: "",
663
+
ID: "LP029",
664
664
Brief: "email < min length",
665
665
Description: "",
666
666
MessageTemplate: "library.properties email value is less than minimum length.",
@@ -675,7 +675,7 @@ var configurations = []Type{
675
675
ProjectType: projecttype.Library,
676
676
Category: "library.properties",
677
677
Subcategory: "email field",
678
-
ID: "",
678
+
ID: "LP030",
679
679
Brief: `starts with "Arduino"`,
680
680
Description: "Case insensitive.",
681
681
MessageTemplate: `library.properties email value {{.}} starts with "Arduino". 3rd party libraries are not maintained by Arduino.`,
@@ -690,7 +690,7 @@ var configurations = []Type{
690
690
ProjectType: projecttype.Library,
691
691
Category: "library.properties",
692
692
Subcategory: "sentence field",
693
-
ID: "",
693
+
ID: "LP031",
694
694
Brief: "missing sentence field",
695
695
Description: "",
696
696
MessageTemplate: "missing required sentence field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -705,7 +705,7 @@ var configurations = []Type{
705
705
ProjectType: projecttype.Library,
706
706
Category: "library.properties",
707
707
Subcategory: "sentence field",
708
-
ID: "",
708
+
ID: "LP032",
709
709
Brief: "sentence < min length",
710
710
Description: "",
711
711
MessageTemplate: "library.properties sentence value is less than minimum length.",
@@ -720,7 +720,7 @@ var configurations = []Type{
720
720
ProjectType: projecttype.Library,
721
721
Category: "library.properties",
722
722
Subcategory: "sentence field",
723
-
ID: "",
723
+
ID: "LP033",
724
724
Brief: "sentence spell check",
725
725
Description: "",
726
726
MessageTemplate: "A commonly misspelled word was found in the library.properties sentence field. Suggested correction: {{.}}",
@@ -735,7 +735,7 @@ var configurations = []Type{
735
735
ProjectType: projecttype.Library,
736
736
Category: "library.properties",
737
737
Subcategory: "paragraph field",
738
-
ID: "",
738
+
ID: "LP034",
739
739
Brief: "missing paragraph field",
740
740
Description: "",
741
741
MessageTemplate: "missing required paragraph field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -750,7 +750,7 @@ var configurations = []Type{
750
750
ProjectType: projecttype.Library,
751
751
Category: "library.properties",
752
752
Subcategory: "paragraph field",
753
-
ID: "",
753
+
ID: "LP035",
754
754
Brief: "paragraph spell check",
755
755
Description: "",
756
756
MessageTemplate: "A commonly misspelled word was found in the library.properties paragraph field. Suggested correction: {{.}}",
@@ -765,7 +765,7 @@ var configurations = []Type{
765
765
ProjectType: projecttype.Library,
766
766
Category: "library.properties",
767
767
Subcategory: "paragraph field",
768
-
ID: "",
768
+
ID: "LP036",
769
769
Brief: "paragraph repeats sentence",
770
770
Description: "",
771
771
MessageTemplate: "The library.properties paragraph field repeats the sentence field. These are displayed together so redundancy is not needed.",
@@ -780,7 +780,7 @@ var configurations = []Type{
780
780
ProjectType: projecttype.Library,
781
781
Category: "library.properties",
782
782
Subcategory: "category field",
783
-
ID: "",
783
+
ID: "LP037",
784
784
Brief: "missing category field",
785
785
Description: `This can cause a warning and results in the default "Uncategorized" category being used.`,
786
786
MessageTemplate: "missing category field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -795,7 +795,7 @@ var configurations = []Type{
795
795
ProjectType: projecttype.Library,
796
796
Category: "library.properties",
797
797
Subcategory: "category field",
798
-
ID: "",
798
+
ID: "LP038",
799
799
Brief: "invalid category value",
800
800
Description: `This can cause a warning and results in the default "Uncategorized" category being used.`,
801
801
MessageTemplate: "invalid category field value {{.}} in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -810,7 +810,7 @@ var configurations = []Type{
810
810
ProjectType: projecttype.Library,
811
811
Category: "library.properties",
812
812
Subcategory: "category field",
813
-
ID: "",
813
+
ID: "LP039",
814
814
Brief: `"Uncategorized" category value`,
815
815
Description: "There is no good reason for using this non-specification compliant category value.",
816
816
MessageTemplate: `Use of "Uncategorized" category value in library.properties. Please use one of the supported categories listed at https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format`,
@@ -825,7 +825,7 @@ var configurations = []Type{
825
825
ProjectType: projecttype.Library,
826
826
Category: "library.properties",
827
827
Subcategory: "url field",
828
-
ID: "",
828
+
ID: "LP040",
829
829
Brief: "missing url field",
830
830
Description: "",
831
831
MessageTemplate: "missing required url field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -840,7 +840,7 @@ var configurations = []Type{
840
840
ProjectType: projecttype.Library,
841
841
Category: "library.properties",
842
842
Subcategory: "url field",
843
-
ID: "",
843
+
ID: "LP041",
844
844
Brief: "invalid url format",
845
845
Description: "",
846
846
MessageTemplate: "library.properties url field value {{.}} does not have a valid URL format.",
@@ -855,7 +855,7 @@ var configurations = []Type{
855
855
ProjectType: projecttype.Library,
856
856
Category: "library.properties",
857
857
Subcategory: "url field",
858
-
ID: "",
858
+
ID: "LP042",
859
859
Brief: "Dead URL",
860
860
Description: "",
861
861
MessageTemplate: "Unable to load the library.properties url field: {{.}}",
@@ -870,7 +870,7 @@ var configurations = []Type{
870
870
ProjectType: projecttype.Library,
871
871
Category: "library.properties",
872
872
Subcategory: "architectures field",
873
-
ID: "",
873
+
ID: "LP043",
874
874
Brief: "missing architectures field",
875
875
Description: "Defaults to *, but it's better to explicitly define architectures.",
876
876
MessageTemplate: "missing architectures field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -885,7 +885,7 @@ var configurations = []Type{
885
885
ProjectType: projecttype.Library,
886
886
Category: "library.properties",
887
887
Subcategory: "architectures field",
888
-
ID: "",
888
+
ID: "LP044",
889
889
Brief: "architectures blank",
890
890
Description: "Causes library to be considered incompatible with all architectures.",
891
891
MessageTemplate: "Empty library.properties architectures field. Please define specific architectures or set to * if compatible with all. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -900,7 +900,7 @@ var configurations = []Type{
900
900
ProjectType: projecttype.Library,
901
901
Category: "library.properties",
902
902
Subcategory: "architectures field",
903
-
ID: "",
903
+
ID: "LP045",
904
904
Brief: "architecture alias",
905
905
Description: "Alternative development frameworks diverged on architecture naming.",
906
906
MessageTemplate: "Architecture alias(es) in library.properties architectures field: {{.}}. Please also specify the true Arduino architectures compatibilities of the library. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -915,7 +915,7 @@ var configurations = []Type{
915
915
ProjectType: projecttype.Library,
916
916
Category: "library.properties",
917
917
Subcategory: "architectures field",
918
-
ID: "",
918
+
ID: "LP046",
919
919
Brief: "miscased architecture",
920
920
Description: "",
921
921
MessageTemplate: "Incorrect case of library.properties architectures field item(s): {{.}}. Architectures are case sensitive. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -930,7 +930,7 @@ var configurations = []Type{
930
930
ProjectType: projecttype.Library,
931
931
Category: "library.properties",
932
932
Subcategory: "depends field",
933
-
ID: "",
933
+
ID: "LP047",
934
934
Brief: "disallowed characters",
935
935
Description: "",
936
936
MessageTemplate: "disallowed characters in library.properties depends field {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -945,7 +945,7 @@ var configurations = []Type{
945
945
ProjectType: projecttype.Library,
946
946
Category: "library.properties",
947
947
Subcategory: "depends field",
948
-
ID: "LP012",
948
+
ID: "LP048",
949
949
Brief: "Dependency not in index",
950
950
Description: "",
951
951
MessageTemplate: "library.properties depends field item(s) {{.}} not found in the Library Manager index.",
@@ -960,7 +960,7 @@ var configurations = []Type{
960
960
ProjectType: projecttype.Library,
961
961
Category: "library.properties",
962
962
Subcategory: "dot_a_linkage field",
963
-
ID: "",
963
+
ID: "LP049",
964
964
Brief: "invalid value",
965
965
Description: "",
966
966
MessageTemplate: "invalid dot_a_linkage field value {{.}} in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -975,7 +975,7 @@ var configurations = []Type{
975
975
ProjectType: projecttype.Library,
976
976
Category: "library.properties",
977
977
Subcategory: "dot_a_linkage field",
978
-
ID: "",
978
+
ID: "LP050",
979
979
Brief: `"true" with "1.5" library format`,
980
980
Description: `dot_a_linkage feature is only supported for the "1.5" or "recursive" library format.`,
981
981
MessageTemplate: `library.properties dot_a_linkage field enabled but library is not in "1.5" format. See: https://arduino.github.io/arduino-cli/latest/library-specification/#source-code`,
@@ -990,7 +990,7 @@ var configurations = []Type{
990
990
ProjectType: projecttype.Library,
991
991
Category: "library.properties",
992
992
Subcategory: "includes field",
993
-
ID: "",
993
+
ID: "LP051",
994
994
Brief: "includes blank",
995
995
Description: `Caused the "Sketch > Include library" feature of previous IDE versions to add an empty #include directive to the sketch.`,
996
996
MessageTemplate: "Empty library.properties includes field. Please either define includes or remove this optional field. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -1005,7 +1005,7 @@ var configurations = []Type{
1005
1005
ProjectType: projecttype.Library,
1006
1006
Category: "library.properties",
1007
1007
Subcategory: "includes field",
1008
-
ID: "",
1008
+
ID: "LP052",
1009
1009
Brief: "includes file not in library",
1010
1010
Description: `People often think this is the way to define their library's dependencies, which breaks the "Sketch > Include Library" feature for that library.`,
1011
1011
MessageTemplate: "library.properties includes field item(s) {{.}} not found in library.",
@@ -1020,7 +1020,7 @@ var configurations = []Type{
1020
1020
ProjectType: projecttype.Library,
1021
1021
Category: "library.properties",
1022
1022
Subcategory: "precompiled field",
1023
-
ID: "",
1023
+
ID: "LP053",
1024
1024
Brief: "invalid value",
1025
1025
Description: "",
1026
1026
MessageTemplate: "invalid precompiled field value {{.}} in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
@@ -1035,7 +1035,7 @@ var configurations = []Type{
1035
1035
ProjectType: projecttype.Library,
1036
1036
Category: "library.properties",
1037
1037
Subcategory: "precompiled field",
1038
-
ID: "",
1038
+
ID: "LP054",
1039
1039
Brief: "precompiled with flat layout",
1040
1040
Description: `precompiled feature is only supported for the "1.5" or "recursive" library format.`,
1041
1041
MessageTemplate: `library.properties precompiled field value {{.}}, is not supported with "1.0" format. See: https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format`,
@@ -1050,7 +1050,7 @@ var configurations = []Type{
1050
1050
ProjectType: projecttype.Library,
1051
1051
Category: "library.properties",
1052
1052
Subcategory: "ldflags field",
1053
-
ID: "",
1053
+
ID: "LP055",
1054
1054
Brief: "ldflags < min length",
1055
1055
Description: "",
1056
1056
MessageTemplate: "library.properties ldflags value is less than minimum length.",
@@ -1065,7 +1065,7 @@ var configurations = []Type{
1065
1065
ProjectType: projecttype.Library,
1066
1066
Category: "code",
1067
1067
Subcategory: "miscellaneous",
1068
-
ID: "",
1068
+
ID: "LC001",
1069
1069
Brief: "incorrect Arduino.h case",
1070
1070
Description: "This causes compilation failure on filename case-sensitive OS (e.g., Linux).",
1071
1071
MessageTemplate: "Incorrect of Arduino.h filename case detected in #include directive: {{.}}",
@@ -1080,7 +1080,7 @@ var configurations = []Type{
1080
1080
ProjectType: projecttype.Library,
1081
1081
Category: "documentation",
1082
1082
Subcategory: "miscellaneous",
1083
-
ID: "",
1083
+
ID: "LD001",
1084
1084
Brief: "no readme",
1085
1085
Description: "",
1086
1086
MessageTemplate: "No readme found. Please document your library. See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-readmes",
@@ -1095,7 +1095,7 @@ var configurations = []Type{
1095
1095
ProjectType: projecttype.Library,
1096
1096
Category: "documentation",
1097
1097
Subcategory: "miscellaneous",
1098
-
ID: "",
1098
+
ID: "LD002",
1099
1099
Brief: "no license file",
1100
1100
Description: "",
1101
1101
MessageTemplate: "No license file found. See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/licensing-a-repository#detecting-a-license",
@@ -1110,7 +1110,7 @@ var configurations = []Type{
1110
1110
ProjectType: projecttype.Library,
1111
1111
Category: "documentation",
1112
1112
Subcategory: "examples",
1113
-
ID: "",
1113
+
ID: "LD003",
1114
1114
Brief: "stray sketch",
1115
1115
Description: "",
1116
1116
MessageTemplate: "Sketch(es) found outside examples and extras folders: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-examples",
@@ -1125,7 +1125,7 @@ var configurations = []Type{
1125
1125
ProjectType: projecttype.Library,
1126
1126
Category: "documentation",
1127
1127
Subcategory: "examples",
1128
-
ID: "",
1128
+
ID: "LD004",
1129
1129
Brief: "no examples",
1130
1130
Description: "",
1131
1131
MessageTemplate: "No example sketches found. Please provide examples. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-examples",
@@ -1140,7 +1140,7 @@ var configurations = []Type{
1140
1140
ProjectType: projecttype.Library,
1141
1141
Category: "documentation",
1142
1142
Subcategory: "examples",
1143
-
ID: "",
1143
+
ID: "LD005",
1144
1144
Brief: "incorrect examples folder name",
1145
1145
Description: "",
1146
1146
MessageTemplate: "Potentially misspelled examples folder name found: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-examples",
@@ -1155,7 +1155,7 @@ var configurations = []Type{
1155
1155
ProjectType: projecttype.Library,
1156
1156
Category: "documentation",
1157
1157
Subcategory: "examples",
1158
-
ID: "",
1158
+
ID: "LD006",
1159
1159
Brief: "incorrect examples folder name case",
1160
1160
Description: "",
1161
1161
MessageTemplate: "Incorrect examples folder name case: {{.}}. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-examples",
@@ -1170,7 +1170,7 @@ var configurations = []Type{
1170
1170
ProjectType: projecttype.Sketch,
1171
1171
Category: "structure",
1172
1172
Subcategory: "root folder",
1173
-
ID: "",
1173
+
ID: "SS001",
1174
1174
Brief: "name mismatch",
1175
1175
Description: "",
1176
1176
MessageTemplate: "Sketch file/folder name mismatch. The primary sketch file name must match the folder: {{.}}. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#primary-sketch-file",
@@ -1185,7 +1185,7 @@ var configurations = []Type{
1185
1185
ProjectType: projecttype.Sketch,
1186
1186
Category: "structure",
1187
1187
Subcategory: "file name",
1188
-
ID: "",
1188
+
ID: "SS002",
1189
1189
Brief: "disallowed characters in file name",
1190
1190
Description: "",
1191
1191
MessageTemplate: "Prohibited characters in file name(s): {{.}}. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-root-folder",
@@ -1200,7 +1200,7 @@ var configurations = []Type{
1200
1200
ProjectType: projecttype.Sketch,
1201
1201
Category: "structure",
1202
1202
Subcategory: "file name",
1203
-
ID: "",
1203
+
ID: "SS003",
1204
1204
Brief: "file name too long",
1205
1205
Description: "",
1206
1206
MessageTemplate: "File name(s): {{.}} exceed maximum length. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-root-folder",
@@ -1215,7 +1215,7 @@ var configurations = []Type{
1215
1215
ProjectType: projecttype.Sketch,
1216
1216
Category: "structure",
1217
1217
Subcategory: "file name",
1218
-
ID: "SS001",
1218
+
ID: "SS004",
1219
1219
Brief: ".pde extension",
1220
1220
Description: "The .pde extension is used by both Processing sketches and Arduino sketches. Processing sketches should either be in the \"data\" subfolder of the sketch or in the \"extras\" folder of the library. Arduino sketches should use the modern .ino extension.",
1221
1221
MessageTemplate: "{{.}} uses deprecated .pde file extension. Use .ino for Arduino sketches.",
@@ -1230,7 +1230,7 @@ var configurations = []Type{
1230
1230
ProjectType: projecttype.Sketch,
1231
1231
Category: "structure",
1232
1232
Subcategory: "miscellaneous",
1233
-
ID: "",
1233
+
ID: "SS005",
1234
1234
Brief: "incorrect src folder case",
1235
1235
Description: "",
1236
1236
MessageTemplate: "Incorrect src folder case: {{.}}. This will cause the source files under it to not be compiled on case-sensitive operating systems. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#src-subfolder",
@@ -1245,7 +1245,7 @@ var configurations = []Type{
1245
1245
ProjectType: projecttype.Sketch,
1246
1246
Category: "code",
1247
1247
Subcategory: "miscellaneous",
1248
-
ID: "",
1248
+
ID: "SC001",
1249
1249
Brief: "incorrect Arduino.h case",
1250
1250
Description: "This causes compilation failure on filename case-sensitive OS (e.g., Linux).",
1251
1251
MessageTemplate: "Incorrect of Arduino.h filename case detected in #include directive: {{.}}",
@@ -1260,7 +1260,7 @@ var configurations = []Type{
1260
1260
ProjectType: projecttype.Sketch,
1261
1261
Category: "documentation",
1262
1262
Subcategory: "miscellaneous",
1263
-
ID: "",
1263
+
ID: "SD001",
1264
1264
Brief: "no readme",
1265
1265
Description: "",
1266
1266
MessageTemplate: "No readme found. Please document your sketch. See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-readmes",
@@ -1275,7 +1275,7 @@ var configurations = []Type{
1275
1275
ProjectType: projecttype.Sketch,
1276
1276
Category: "documentation",
1277
1277
Subcategory: "miscellaneous",
1278
-
ID: "",
1278
+
ID: "SD002",
1279
1279
Brief: "no license file",
1280
1280
Description: "",
1281
1281
MessageTemplate: "No license file found. See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/licensing-a-repository#detecting-a-license",
@@ -1290,7 +1290,7 @@ var configurations = []Type{
1290
1290
ProjectType: projecttype.Sketch,
1291
1291
Category: "sketch.json",
1292
1292
Subcategory: "general",
1293
-
ID: "",
1293
+
ID: "SM001",
1294
1294
Brief: "invalid sketch.json JSON format",
1295
1295
Description: "",
1296
1296
MessageTemplate: "sketch.json is not a valid JSON document. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#metadata",
@@ -1305,7 +1305,7 @@ var configurations = []Type{
1305
1305
ProjectType: projecttype.Sketch,
1306
1306
Category: "sketch.json",
1307
1307
Subcategory: "general",
1308
-
ID: "",
1308
+
ID: "SM002",
1309
1309
Brief: "invalid sketch.json data format",
1310
1310
Description: "",
1311
1311
MessageTemplate: "sketch.json has an invalid data format: {{.}}. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#metadata",
@@ -1320,7 +1320,7 @@ var configurations = []Type{
1320
1320
ProjectType: projecttype.Platform,
1321
1321
Category: "documentation",
1322
1322
Subcategory: "miscellaneous",
1323
-
ID: "",
1323
+
ID: "PD001",
1324
1324
Brief: "no readme",
1325
1325
Description: "",
1326
1326
MessageTemplate: "No readme found. Please document your library. See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-readmes",
@@ -1335,7 +1335,7 @@ var configurations = []Type{
1335
1335
ProjectType: projecttype.Platform,
1336
1336
Category: "documentation",
1337
1337
Subcategory: "miscellaneous",
1338
-
ID: "",
1338
+
ID: "PD002",
1339
1339
Brief: "no license file",
1340
1340
Description: "",
1341
1341
MessageTemplate: "No license file found. See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/licensing-a-repository#detecting-a-license",
@@ -1350,7 +1350,7 @@ var configurations = []Type{
1350
1350
ProjectType: projecttype.Platform,
1351
1351
Category: "configuration files",
1352
1352
Subcategory: "boards.txt",
1353
-
ID: "",
1353
+
ID: "PF001",
1354
1354
Brief: "missing",
1355
1355
Description: "",
1356
1356
MessageTemplate: "Required boards.txt is missing. Expected at: {{.}}",
@@ -1365,7 +1365,7 @@ var configurations = []Type{
1365
1365
ProjectType: projecttype.Platform,
1366
1366
Category: "configuration files",
1367
1367
Subcategory: "boards.txt",
1368
-
ID: "",
1368
+
ID: "PF002",
1369
1369
Brief: "Invalid boards.txt",
1370
1370
Description: "",
1371
1371
MessageTemplate: "boards.txt has an invalid format: {{.}}",
@@ -1380,7 +1380,7 @@ var configurations = []Type{
1380
1380
ProjectType: projecttype.Platform,
1381
1381
Category: "code",
1382
1382
Subcategory: "miscellaneous",
1383
-
ID: "",
1383
+
ID: "PC001",
1384
1384
Brief: "incorrect Arduino.h case",
1385
1385
Description: "This causes compilation failure on filename case-sensitive OS (e.g., Linux).",
1386
1386
MessageTemplate: "Incorrect of Arduino.h filename case detected in #include directive: {{.}}",
@@ -1395,7 +1395,7 @@ var configurations = []Type{
1395
1395
ProjectType: projecttype.PackageIndex,
1396
1396
Category: "data",
1397
1397
Subcategory: "general",
1398
-
ID: "",
1398
+
ID: "ID001",
1399
1399
Brief: "Invalid JSON format",
1400
1400
Description: "",
1401
1401
MessageTemplate: "Invalid JSON format.",
@@ -1410,7 +1410,7 @@ var configurations = []Type{
1410
1410
ProjectType: projecttype.PackageIndex,
1411
1411
Category: "data",
1412
1412
Subcategory: "general",
1413
-
ID: "",
1413
+
ID: "ID002",
1414
1414
Brief: "Invalid format",
1415
1415
Description: "",
1416
1416
MessageTemplate: "Invalid package index format: {{.}}",
0 commit comments