@@ -371,6 +371,21 @@ var configurations = []Type{
371
371
ErrorModes : []checkmode.Type {checkmode .Strict },
372
372
CheckFunction : checkfunctions .LibraryPropertiesVersionFieldNonSemver ,
373
373
},
374
+ {
375
+ ProjectType : projecttype .Library ,
376
+ Category : "library.properties" ,
377
+ Subcategory : "version field" ,
378
+ ID : "" ,
379
+ Brief : "tag mismatch" ,
380
+ Description : "The Library Manager indexer will reject any tag that has a library.properties version equal to a previous tag in the index." ,
381
+ 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." ,
382
+ DisableModes : []checkmode.Type {checkmode .Default },
383
+ EnableModes : []checkmode.Type {checkmode .LibraryManagerIndexed },
384
+ InfoModes : nil ,
385
+ WarningModes : []checkmode.Type {checkmode .Default },
386
+ ErrorModes : []checkmode.Type {checkmode .Strict },
387
+ CheckFunction : checkfunctions .LibraryPropertiesVersionFieldBehindTag ,
388
+ },
374
389
{
375
390
ProjectType : projecttype .Library ,
376
391
Category : "library.properties" ,
@@ -971,6 +986,21 @@ var configurations = []Type{
971
986
ErrorModes : []checkmode.Type {checkmode .Strict },
972
987
CheckFunction : checkfunctions .MissingReadme ,
973
988
},
989
+ {
990
+ ProjectType : projecttype .Library ,
991
+ Category : "structure" ,
992
+ Subcategory : "" ,
993
+ ID : "" ,
994
+ Brief : "no license file" ,
995
+ Description : "" ,
996
+ 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" ,
997
+ DisableModes : nil ,
998
+ EnableModes : []checkmode.Type {checkmode .Default },
999
+ InfoModes : nil ,
1000
+ WarningModes : []checkmode.Type {checkmode .Default },
1001
+ ErrorModes : []checkmode.Type {checkmode .Strict },
1002
+ CheckFunction : checkfunctions .MissingLicenseFile ,
1003
+ },
974
1004
{
975
1005
ProjectType : projecttype .Sketch ,
976
1006
Category : "structure" ,
@@ -1016,6 +1046,21 @@ var configurations = []Type{
1016
1046
ErrorModes : []checkmode.Type {checkmode .Default },
1017
1047
CheckFunction : checkfunctions .IncorrectLibrarySrcFolderNameCase ,
1018
1048
},
1049
+ {
1050
+ ProjectType : projecttype .Library ,
1051
+ Category : "structure" ,
1052
+ Subcategory : "" ,
1053
+ ID : "" ,
1054
+ Brief : "no examples" ,
1055
+ Description : "" ,
1056
+ MessageTemplate : "No example sketches found. Please provide examples. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-examples" ,
1057
+ DisableModes : nil ,
1058
+ EnableModes : []checkmode.Type {checkmode .Default },
1059
+ InfoModes : nil ,
1060
+ WarningModes : []checkmode.Type {checkmode .Default },
1061
+ ErrorModes : nil ,
1062
+ CheckFunction : checkfunctions .MissingExamples ,
1063
+ },
1019
1064
{
1020
1065
ProjectType : projecttype .Library ,
1021
1066
Category : "structure" ,
@@ -1091,6 +1136,21 @@ var configurations = []Type{
1091
1136
ErrorModes : []checkmode.Type {checkmode .Default },
1092
1137
CheckFunction : checkfunctions .RecursiveLibraryWithUtilityFolder ,
1093
1138
},
1139
+ {
1140
+ ProjectType : projecttype .Library ,
1141
+ Category : "code" ,
1142
+ Subcategory : "" ,
1143
+ ID : "" ,
1144
+ Brief : "incorrect Arduino.h case" ,
1145
+ Description : "This causes compilation failure on filename case-sensitive OS (e.g., Linux)." ,
1146
+ MessageTemplate : "Incorrect of Arduino.h filename case detected in #include directive: {{.}}" ,
1147
+ DisableModes : nil ,
1148
+ EnableModes : []checkmode.Type {checkmode .Default },
1149
+ InfoModes : nil ,
1150
+ WarningModes : []checkmode.Type {checkmode .Default },
1151
+ ErrorModes : []checkmode.Type {checkmode .Strict },
1152
+ CheckFunction : checkfunctions .IncorrectArduinoDotHFileNameCase ,
1153
+ },
1094
1154
{
1095
1155
ProjectType : projecttype .Sketch ,
1096
1156
Category : "structure" ,
@@ -1151,6 +1211,81 @@ var configurations = []Type{
1151
1211
ErrorModes : []checkmode.Type {checkmode .Strict },
1152
1212
CheckFunction : checkfunctions .MissingReadme ,
1153
1213
},
1214
+ {
1215
+ ProjectType : projecttype .Sketch ,
1216
+ Category : "structure" ,
1217
+ Subcategory : "" ,
1218
+ ID : "" ,
1219
+ Brief : "no license file" ,
1220
+ Description : "" ,
1221
+ 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" ,
1222
+ DisableModes : nil ,
1223
+ EnableModes : []checkmode.Type {checkmode .Default },
1224
+ InfoModes : nil ,
1225
+ WarningModes : []checkmode.Type {checkmode .Default },
1226
+ ErrorModes : []checkmode.Type {checkmode .Strict },
1227
+ CheckFunction : checkfunctions .MissingLicenseFile ,
1228
+ },
1229
+ {
1230
+ ProjectType : projecttype .Sketch ,
1231
+ Category : "metadata" ,
1232
+ Subcategory : "sketch.json" ,
1233
+ ID : "" ,
1234
+ Brief : "invalid sketch.json JSON format" ,
1235
+ Description : "" ,
1236
+ MessageTemplate : "sketch.json is not a valid JSON document. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#metadata" ,
1237
+ DisableModes : nil ,
1238
+ EnableModes : []checkmode.Type {checkmode .Default },
1239
+ InfoModes : nil ,
1240
+ WarningModes : []checkmode.Type {checkmode .Permissive },
1241
+ ErrorModes : []checkmode.Type {checkmode .Default },
1242
+ CheckFunction : checkfunctions .SketchDotJSONJSONFormat ,
1243
+ },
1244
+ {
1245
+ ProjectType : projecttype .Sketch ,
1246
+ Category : "metadata" ,
1247
+ Subcategory : "sketch.json" ,
1248
+ ID : "" ,
1249
+ Brief : "invalid sketch.json data format" ,
1250
+ Description : "" ,
1251
+ MessageTemplate : "sketch.json has an invalid data format: {{.}}. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#metadata" ,
1252
+ DisableModes : nil ,
1253
+ EnableModes : []checkmode.Type {checkmode .Default },
1254
+ InfoModes : nil ,
1255
+ WarningModes : []checkmode.Type {checkmode .Permissive },
1256
+ ErrorModes : []checkmode.Type {checkmode .Default },
1257
+ CheckFunction : checkfunctions .SketchDotJSONFormat ,
1258
+ },
1259
+ {
1260
+ ProjectType : projecttype .Sketch ,
1261
+ Category : "structure" ,
1262
+ Subcategory : "" ,
1263
+ ID : "" ,
1264
+ Brief : "name mismatch" ,
1265
+ Description : "" ,
1266
+ 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" ,
1267
+ DisableModes : nil ,
1268
+ EnableModes : []checkmode.Type {checkmode .Default },
1269
+ InfoModes : nil ,
1270
+ WarningModes : []checkmode.Type {checkmode .Permissive },
1271
+ ErrorModes : []checkmode.Type {checkmode .Default },
1272
+ CheckFunction : checkfunctions .SketchNameMismatch ,
1273
+ },
1274
+ {
1275
+ ProjectType : projecttype .Sketch ,
1276
+ Category : "code" ,
1277
+ Subcategory : "" ,
1278
+ ID : "" ,
1279
+ Brief : "incorrect Arduino.h case" ,
1280
+ Description : "This causes compilation failure on filename case-sensitive OS (e.g., Linux)." ,
1281
+ MessageTemplate : "Incorrect of Arduino.h filename case detected in #include directive: {{.}}" ,
1282
+ DisableModes : nil ,
1283
+ EnableModes : []checkmode.Type {checkmode .Default },
1284
+ InfoModes : nil ,
1285
+ WarningModes : []checkmode.Type {checkmode .Default },
1286
+ ErrorModes : []checkmode.Type {checkmode .Strict },
1287
+ CheckFunction : checkfunctions .IncorrectArduinoDotHFileNameCase ,
1288
+ },
1154
1289
{
1155
1290
ProjectType : projecttype .Platform ,
1156
1291
Category : "configuration files" ,
@@ -1181,6 +1316,51 @@ var configurations = []Type{
1181
1316
ErrorModes : []checkmode.Type {checkmode .Default },
1182
1317
CheckFunction : checkfunctions .BoardsTxtFormat ,
1183
1318
},
1319
+ {
1320
+ ProjectType : projecttype .Platform ,
1321
+ Category : "structure" ,
1322
+ Subcategory : "" ,
1323
+ ID : "" ,
1324
+ Brief : "no readme" ,
1325
+ Description : "" ,
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" ,
1327
+ DisableModes : nil ,
1328
+ EnableModes : []checkmode.Type {checkmode .Default },
1329
+ InfoModes : nil ,
1330
+ WarningModes : []checkmode.Type {checkmode .Default },
1331
+ ErrorModes : []checkmode.Type {checkmode .Strict },
1332
+ CheckFunction : checkfunctions .MissingReadme ,
1333
+ },
1334
+ {
1335
+ ProjectType : projecttype .Platform ,
1336
+ Category : "structure" ,
1337
+ Subcategory : "" ,
1338
+ ID : "" ,
1339
+ Brief : "no license file" ,
1340
+ Description : "" ,
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" ,
1342
+ DisableModes : nil ,
1343
+ EnableModes : []checkmode.Type {checkmode .Default },
1344
+ InfoModes : nil ,
1345
+ WarningModes : []checkmode.Type {checkmode .Default },
1346
+ ErrorModes : []checkmode.Type {checkmode .Strict },
1347
+ CheckFunction : checkfunctions .MissingLicenseFile ,
1348
+ },
1349
+ {
1350
+ ProjectType : projecttype .Platform ,
1351
+ Category : "code" ,
1352
+ Subcategory : "" ,
1353
+ ID : "" ,
1354
+ Brief : "incorrect Arduino.h case" ,
1355
+ Description : "This causes compilation failure on filename case-sensitive OS (e.g., Linux)." ,
1356
+ MessageTemplate : "Incorrect of Arduino.h filename case detected in #include directive: {{.}}" ,
1357
+ DisableModes : nil ,
1358
+ EnableModes : []checkmode.Type {checkmode .Default },
1359
+ InfoModes : nil ,
1360
+ WarningModes : []checkmode.Type {checkmode .Default },
1361
+ ErrorModes : []checkmode.Type {checkmode .Strict },
1362
+ CheckFunction : checkfunctions .IncorrectArduinoDotHFileNameCase ,
1363
+ },
1184
1364
{
1185
1365
ProjectType : projecttype .PackageIndex ,
1186
1366
Category : "data" ,
0 commit comments