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 a Library Manager configuration for linting while indexing releases #170

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:indexing-mode
May 12, 2021
Merged

Add a Library Manager configuration for linting while indexing releases #170

per1234 merged 1 commit into arduino:main from per1234:indexing-mode
May 12, 2021

Conversation

Copy link
Contributor

@per1234 per1234 commented May 11, 2021

Some of Arduino Lint's rules are based on the data in the published Arduino Library Manager index. These allow library maintainers to check compliance with the Library Manager submission or update requirements.

Work is now in progress to use Arduino Lint to validate library releases during the generation of the index. In this usage, data from the published index is not relevant, meaning the results from those rules are inaccurate and so downloading the index for the sake of them is a waste. So another configuration mode is needed to to allow the index-based rules to be disabled.

Since this mode is of no use to normal users of Arduino Lint, it is enabled via an environment variable so that no unnecessary complexity is added to the standard UI of the tool. The environment variable name is ARDUINO_LINT_LIBRARY_MANAGER_INDEXING.

Some of Arduino Lint's rules are based on the data in the published Arduino Library Manager index. These allow library
maintainers to check compliance with the Library Manager submission or update requirements.
Work is now in progress to use Arduino Lint to validate library releases during the generation of the index. In this
usage, data from the published index is not relevant, meaning the results from those rules are inaccurate and so
downloading the index for the sake of them is a waste. So another configuration mode is needed to to allow the
index-based rules to be disabled.
Since this mode is of no use to normal users of Arduino Lint, it is enabled via an environment variable so that no
unnecessary complexity is added to the standard UI of the tool. The environment variable name is
`ARDUINO_LINT_LIBRARY_MANAGER_INDEXING`.
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels May 11, 2021
Copy link

Codecov Report

Merging #170 (5acadea) into main (15c986b) will increase coverage by 0.04%.
The diff coverage is 89.18%.

Impacted file tree graph

@@ Coverage Diff @@
## main #170 +/- ##
==========================================
+ Coverage 84.27% 84.32% +0.04% 
==========================================
 Files 43 43 
 Lines 2957 2966 +9 
==========================================
+ Hits 2492 2501 +9 
 Misses 373 373 
 Partials 92 92 
Flag Coverage Δ
unit 84.32% <89.18%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
internal/configuration/rulemode/type_string.go 8.33% <0.00%> (-0.76%) ⬇️
...ternal/rule/ruleconfiguration/ruleconfiguration.go 100.00% <ø> (ø)
internal/configuration/rulemode/rulemode.go 93.75% <80.00%> (ø)
internal/configuration/configuration.go 95.91% <100.00%> (+0.41%) ⬆️
internal/project/project.go 93.87% <100.00%> (+0.63%) ⬆️
internal/project/projectdata/library.go 76.92% <100.00%> (ø)
internal/rule/rulefunction/rulefunction.go 78.72% <100.00%> (ø)

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 406e297...5acadea. Read the comment docs.

@per1234 per1234 merged commit 93884b9 into arduino:main May 12, 2021
@per1234 per1234 deleted the indexing-mode branch May 12, 2021 12:37
@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

@umbynos umbynos Awaiting requested review from umbynos

@rsora rsora Awaiting requested review from rsora

1 more reviewer

@silvanocerza silvanocerza silvanocerza 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 によって変換されたページ (->オリジナル) /