Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Increase Library name length from 16 to 32 #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
per1234 merged 5 commits into arduino:main from aliphys:increaseLibNameLengthTo64
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"$ref": "#/definitions/propertiesObjects/name/specification/object"
},
{
"maxLength": 16
"maxLength": 32
},
{
"$ref": "#/definitions/propertiesObjects/name/strict/definitions/patternObjects/notContainsSpaces"
Expand Down
2 changes: 1 addition & 1 deletion internal/rule/ruleconfiguration/ruleconfiguration.go
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ var configurations = []Type{
ID: "LP010",
Brief: "name > recommended length",
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.",
MessageTemplate: "library.properties name value {{.}} is longer than the recommended length of 16 characters.",
MessageTemplate: "library.properties name value {{.}} is longer than the recommended length of 32 characters.",
Reference: "https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
DisableModes: nil,
EnableModes: []rulemode.Type{rulemode.Default},
Expand Down
2 changes: 1 addition & 1 deletion internal/rule/rulefunction/library_test.go
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func TestLibraryPropertiesNameFieldGTRecommendedLength(t *testing.T) {
testTables := []libraryRuleFunctionTestTable{
{"Invalid", "InvalidLibraryProperties", ruleresult.NotRun, ""},
{"Legacy", "Legacy", ruleresult.NotRun, ""},
{"Name field longer than recommended", "NameGTRecommendedLength", ruleresult.Fail, ""},
{"Name field longer than recommended", "NameIsBiggerThanRecommendedLength", ruleresult.Fail, ""},
{"Valid", "Recursive", ruleresult.Pass, ""},
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name=NameGTRecommendedLength
name=NameIsBiggerThanRecommendedLength
version=1.0.0
author=Cristian Maglie <c.maglie@example.com>, Pippo Pluto <pippo@example.com>
maintainer=Cristian Maglie <c.maglie@example.com>
Expand Down
2 changes: 1 addition & 1 deletion internal/rule/schema/schemadata/bindata.go
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ var _arduinoLibraryPropertiesDefinitionsSchemaJson = []byte(`{
"$ref": "#/definitions/propertiesObjects/name/specification/object"
},
{
"maxLength": 16
"maxLength": 32
},
{
"$ref": "#/definitions/propertiesObjects/name/strict/definitions/patternObjects/notContainsSpaces"
Expand Down

AltStyle によって変換されたページ (->オリジナル) /