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

Add rule for 3rd party library.properties maintainer using "Arduino" #180

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 1 commit into arduino:main from per1234:maintainer-contains-arduino
Jun 4, 2021
Merged

Add rule for 3rd party library.properties maintainer using "Arduino" #180

per1234 merged 1 commit into arduino:main from per1234:maintainer-contains-arduino
Jun 4, 2021

Conversation

Copy link
Contributor

@per1234 per1234 commented May 30, 2021

3rd party libraries are not maintained by Arduino. Even when 3rd party libraries are based on official libraries, it is
best practice for the library.properties maintainer field to be updated to reflect the true maintainer of the project.

There is already rule LP027 to promote accuracy in documenting maintainership by prohibiting maintainer values that start
with "Arduino". However, this might not cover all inaccurate maintainer declarations. For this reason, a new rule (LP057)
is added here to prohibit maintainer values in 3rd party libraries from containing the term "Arduino" anywhere
(case insensitive). Violations of this rule only result in an error when in "strict" compliance mode.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels May 30, 2021
Copy link

Codecov Report

Merging #180 (4e6b50f) into main (182dbba) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@ Coverage Diff @@
## main #180 +/- ##
==========================================
+ Coverage 84.36% 84.40% +0.04% 
==========================================
 Files 43 43 
 Lines 2986 2994 +8 
==========================================
+ Hits 2519 2527 +8 
 Misses 374 374 
 Partials 93 93 
Flag Coverage Δ
unit 84.40% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ternal/rule/ruleconfiguration/ruleconfiguration.go 100.00% <ø> (ø)
internal/rule/schema/schemadata/bindata.go 48.63% <ø> (ø)
internal/rule/rulefunction/library.go 94.65% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 182dbba...4e6b50f. Read the comment docs.

name=MaintainerContainsArduino
version=1.0.0
author=Cristian Maglie <c.maglie@example.com>, Pippo Pluto <pippo@example.com>
maintainer=Cristian "Arduino Wizard" Maglie <c.maglie@example.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣

cmaglie reacted with heart emoji
Copy link
Contributor

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and working

3rd party libraries are not maintained by Arduino. Even when 3rd party libraries are based on official libraries, it is
best practice for the library.properties `maintainer` field to be updated to reflect the true maintainer of the project.
There is already rule LP027 to promote accuracy in documenting maintainership by prohibiting maintainer values that start
with "Arduino". However, this might not cover all inaccurate maintainer declarations. For this reason, a new rule (LP057)
is added here to prohibit maintainer values in 3rd party libraries from containing the term "Arduino" anywhere
(case insensitive). Violations of this rule only result in an error when in "strict" compliance mode.
@per1234 per1234 merged commit 53c1162 into arduino:main Jun 4, 2021
@per1234 per1234 deleted the maintainer-contains-arduino branch June 4, 2021 08:59
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ubidefeo ubidefeo ubidefeo approved these changes

@cmaglie cmaglie Awaiting requested review from cmaglie

@silvanocerza silvanocerza Awaiting requested review from silvanocerza

+1 more reviewer

@umbynos umbynos umbynos approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

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