@@ -146,6 +146,96 @@ var configurations = []Type{
146
146
ErrorModes : []checkmode.Type {checkmode .All },
147
147
CheckFunction : checkfunctions .LibraryPropertiesVersionFieldMissing ,
148
148
},
149
+ {
150
+ ProjectType : projecttype .Library ,
151
+ Category : "library.properties" ,
152
+ Subcategory : "maintainer field" ,
153
+ ID : "" ,
154
+ Brief : "missing maintainer field" ,
155
+ Description : "" ,
156
+ MessageTemplate : "missing required maintainer field in library.properties. See https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format" ,
157
+ DisableModes : nil ,
158
+ EnableModes : []checkmode.Type {checkmode .All },
159
+ InfoModes : nil ,
160
+ WarningModes : nil ,
161
+ ErrorModes : []checkmode.Type {checkmode .All },
162
+ CheckFunction : checkfunctions .LibraryPropertiesMaintainerFieldMissing ,
163
+ },
164
+ {
165
+ ProjectType : projecttype .Library ,
166
+ Category : "library.properties" ,
167
+ Subcategory : "maintainer field" ,
168
+ ID : "" ,
169
+ Brief : "maintainer < min length" ,
170
+ Description : "" ,
171
+ MessageTemplate : "library.properties maintainer value is less than minimum length" ,
172
+ DisableModes : nil ,
173
+ EnableModes : []checkmode.Type {checkmode .All },
174
+ InfoModes : nil ,
175
+ WarningModes : nil ,
176
+ ErrorModes : []checkmode.Type {checkmode .All },
177
+ CheckFunction : checkfunctions .LibraryPropertiesMaintainerFieldLTMinLength ,
178
+ },
179
+ {
180
+ ProjectType : projecttype .Library ,
181
+ Category : "library.properties" ,
182
+ Subcategory : "maintainer field" ,
183
+ ID : "" ,
184
+ Brief : `starts with "Arduino"` ,
185
+ Description : "Case insensitive." ,
186
+ MessageTemplate : `library.properties maintainer value {{.}} starts with "Arduino". 3rd party libraries are not maintained by Arduino.` ,
187
+ DisableModes : []checkmode.Type {checkmode .Official },
188
+ EnableModes : []checkmode.Type {checkmode .Default },
189
+ InfoModes : nil ,
190
+ WarningModes : []checkmode.Type {checkmode .All },
191
+ ErrorModes : nil ,
192
+ CheckFunction : checkfunctions .LibraryPropertiesMaintainerFieldStartsWithArduino ,
193
+ },
194
+ {
195
+ ProjectType : projecttype .Library ,
196
+ Category : "library.properties" ,
197
+ Subcategory : "email field" ,
198
+ ID : "" ,
199
+ Brief : `"email" field used as alias for "maintainer"` ,
200
+ Description : "This was in an early draft of the beta 1.5 library specification." ,
201
+ MessageTemplate : `library.properties "email" field used as alias for "maintainer". This is deprecated.` ,
202
+ DisableModes : nil ,
203
+ EnableModes : []checkmode.Type {checkmode .All },
204
+ InfoModes : nil ,
205
+ WarningModes : []checkmode.Type {checkmode .Permissive },
206
+ ErrorModes : []checkmode.Type {checkmode .Default },
207
+ CheckFunction : checkfunctions .LibraryPropertiesEmailFieldAsMaintainerAlias ,
208
+ },
209
+ {
210
+ ProjectType : projecttype .Library ,
211
+ Category : "library.properties" ,
212
+ Subcategory : "email field" ,
213
+ ID : "" ,
214
+ Brief : "email < min length" ,
215
+ Description : "" ,
216
+ MessageTemplate : "library.properties email value is less than minimum length" ,
217
+ DisableModes : nil ,
218
+ EnableModes : []checkmode.Type {checkmode .All },
219
+ InfoModes : nil ,
220
+ WarningModes : nil ,
221
+ ErrorModes : []checkmode.Type {checkmode .All },
222
+ CheckFunction : checkfunctions .LibraryPropertiesEmailFieldLTMinLength ,
223
+ },
224
+ {
225
+ ProjectType : projecttype .Library ,
226
+ Category : "library.properties" ,
227
+ Subcategory : "email field" ,
228
+ ID : "" ,
229
+ Brief : `starts with "Arduino"` ,
230
+ Description : "Case insensitive." ,
231
+ MessageTemplate : `library.properties email value {{.}} starts with "Arduino". 3rd party libraries are not maintained by Arduino.` ,
232
+ DisableModes : []checkmode.Type {checkmode .Official },
233
+ EnableModes : []checkmode.Type {checkmode .Default },
234
+ InfoModes : nil ,
235
+ WarningModes : []checkmode.Type {checkmode .All },
236
+ ErrorModes : nil ,
237
+ CheckFunction : checkfunctions .LibraryPropertiesEmailFieldStartsWithArduino ,
238
+ },
149
239
{
150
240
ProjectType : projecttype .Library ,
151
241
Category : "library.properties" ,
0 commit comments