Skip to content

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
merged 1 commit into from
May 12, 2021
Merged

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

merged 1 commit into from
May 12, 2021

Conversation

per1234
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
@per1234 per1234 requested review from silvanocerza, umbynos and rsora May 11, 2021 23:44
@codecov-commenter
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
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants