Skip to content
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

ci: taxonomy linter #10046

Merged
merged 17 commits into from
Apr 2, 2024
Merged

ci: taxonomy linter #10046

merged 17 commits into from
Apr 2, 2024

Conversation

alexgarel
Copy link
Member

@alexgarel alexgarel commented Mar 28, 2024

The taxonomy check is not yet activated because I want to separate the PR where we will lint and fix taxonomies…

you can test it locally with make check_taxonomies or make lint_taxonomies

@github-actions github-actions bot added the 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies label Mar 28, 2024
@github-actions github-actions bot added the Tags label Mar 28, 2024
@github-actions github-actions bot added 🧴 Open Beauty Facts Our cosmetic analysis project https://world.openbeautyfacts.org 🐾 Open Pet Food Facts Our pet food analysis project https://world.openpetfoodfacts.org 📸 Open Products Facts Our project to increase the lifespan of objects. https://world.openproductsfacts.org config store labels Mar 29, 2024
@alexgarel alexgarel marked this pull request as ready for review March 29, 2024 11:54
@alexgarel alexgarel requested a review from a team as a code owner March 29, 2024 11:54
lib/ProductOpener/Tags.pm Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Co-authored-by: Stéphane Gigandet <[email protected]>
@@ -3354,12 +3354,12 @@ wikipedia:en:https://en.wikipedia.org/wiki/Calcium_carbonate
# ingredient/calcium-carbonate has 4220 products in 10 languages @2019-02-03
# mineral/calcium-carbonate has 4301 products @2019-02-03
e_number:en:170
mandatory_additive_class:en: en:acidity-regulator, en:anti-caking-agent, en:stabilizer, en:firming-agent, en:flour-treatment-agent, en:glazing-agent, en:colour
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like you manually changed all occurences of en:stabilizer to en:stabiliser, but did not run "make lint_taxonomies" fully on additives.txt ?

Copy link
Member Author

@alexgarel alexgarel Apr 2, 2024

Choose a reason for hiding this comment

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

Because I wanted to do it in another PR (but needed this stabliser change to have test pass !)

Copy link

sonarqubecloud bot commented Apr 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

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

Thank you!

@stephanegigandet stephanegigandet merged commit 9380318 into main Apr 2, 2024
12 checks passed
@stephanegigandet stephanegigandet deleted the ci-taxonomies-lint branch April 2, 2024 14:38
john-gom pushed a commit that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config 🧴 Open Beauty Facts Our cosmetic analysis project https://world.openbeautyfacts.org 🐾 Open Pet Food Facts Our pet food analysis project https://world.openpetfoodfacts.org 📸 Open Products Facts Our project to increase the lifespan of objects. https://world.openproductsfacts.org store Tags 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies 🧪 tests 🧪 unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a taxonomy linter and lint properties
2 participants