Skip to content

Commit 629e774

Browse files
authored
32 characters is enough for library name
1 parent e850295 commit 629e774

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

etc/schemas/arduino-library-properties-definitions-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"$ref": "#/definitions/propertiesObjects/name/specification/object"
9292
},
9393
{
94-
"maxLength": 64
94+
"maxLength": 32
9595
},
9696
{
9797
"$ref": "#/definitions/propertiesObjects/name/strict/definitions/patternObjects/notContainsSpaces"

internal/rule/ruleconfiguration/ruleconfiguration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ var configurations = []Type{
424424
ID: "LP010",
425425
Brief: "name > recommended length",
426426
Description: "The `name` field in the library's `library.properties` metadata file is longer than the recommended length. As the unique identifier for the library, the name will be typed by the users of command line tools (e.g., `arduino-cli lib install Servo`). For this reason, it is best practices to avoid unnecessary name length.",
427-
MessageTemplate: "library.properties name value {{.}} is longer than the recommended length of 64 characters.",
427+
MessageTemplate: "library.properties name value {{.}} is longer than the recommended length of 32 characters.",
428428
Reference: "https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
429429
DisableModes: nil,
430430
EnableModes: []rulemode.Type{rulemode.Default},

0 commit comments

Comments
 (0)