-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
aentinger
commented
Mar 16, 2023
Honestly, I feel 64 is a bit too much 😉 .
After all we do not want to encourage ThisIsMyFancyArduinoLibraryWhichHasATotalLongAndIncromprehensib(le Name).
I believe 32 would be enough by far.
Secondly, we could add an "exception" for official Arduino libraries, insofar that the "Arduino_" prefix is not counting towards the limit of 16 characters.
You bring a very compelling example @aentinger . Changed it to 32 characters. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@91volt @cmaglie @ubidefeo please discuss the recommended maximum library name length here as requested by @aentinger.
91volt
commented
Mar 16, 2023
32 is fine 👍
Secondly, we could add an "exception" for official Arduino libraries, insofar that the "Arduino_" prefix is not counting towards the limit of 16 characters.
I agree, but that should be valid also for other vendors, like Adafruit_, SparkFun_, ????_... which have a lot of libraries.
Anyway, I guess that just increasing the limit to 32 should already alleviate it.
aentinger
commented
Mar 17, 2023
Don't get me wrong, "36" is fine too. I was just baffled to be presented with this number out of the blue. If 36 makes sense because its the max amount of chars that can be sensibly displayed by the IDE then this is a reasonable criteria imho.
I agree, but that should be valid also for other vendors, like Adafruit_, SparkFun_, ????_... which have a lot of libraries.
Fair enough 😁 . It was just a thought. Given that it is "just" a warning leaving it at 16 is also fine, but I think you all know about the dangers of ignoring warnings and normalization of deviance. Both 36 or 32 would alleviate that pain point for all involved. I'd be fine with going ahead with 36.
LOL, ok, let's not get this longer than needed...
I decide: let's go with 32 :-)
59a92d9 to
4ea2ce2
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@ ## main #511 +/- ## ======================================= Coverage 90.05% 90.05% ======================================= Files 44 44 Lines 6800 6800 ======================================= Hits 6124 6124 Misses 553 553 Partials 123 123
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Since we decided together on 32 characters as the max library length 🎉 , I changed NameGTRecommendedLength (23 characters) to NameIsBiggerThanRecommendedLength (33 characters).
Uh oh!
There was an error while loading. Please reload this page.
As reported in #508 , the current linter rules limit the max number of characters for a library name to 16.
arduino-lint/etc/schemas/arduino-library-properties-definitions-schema.json
Line 94 in c2c82d6
arduino-lint/internal/rule/ruleconfiguration/ruleconfiguration.go
Line 427 in c2c82d6
As noted by @aentinger , since Arduino libraries start with
Arduino_, this leaves only 8 characters to describe the library according to the linter rules. This PR increases the maximum length of a library name to(削除) 64 (削除ここまで)32 characters. For official libraries with the leadingArduino_, this provides(削除) 56 (削除ここまで)24 characters which should be sufficent to describe the library in a UX-friendly manner.