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

refactor: uncomment severity 3 & remove unused variables #7060

Merged
merged 25 commits into from
Jul 18, 2022

Conversation

dipietroR
Copy link
Contributor

Uncommenting severity 3 to get rid of unused variables

@dipietroR dipietroR requested a review from a team as a code owner July 12, 2022 17:36
@dipietroR dipietroR changed the title refactor: uncomment severity 3 refactor: uncomment severity 3 & remove unused variables Jul 12, 2022
@github-actions github-actions bot added Display 🌳 Forest Footprint This is a score designed by a French NGO to assess the deforestation impact (in sq meters) 🥗 Ingredients Tags 🧪 tests labels Jul 12, 2022
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.

Looks good, thank you!

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

Ok, that's cool it show how percritic will help us :-).

Though we may wait for the perlcritic branch to be merged.

@dipietroR
Copy link
Contributor Author

Though we may wait for the perlcritic branch to be merged.

This PR would get merged into perlcritic rather than the main branch, so when perlcritic gets merged into main, then this PR would be merged to main as well.

Implementing perltidy to t/lang.t , will have a merge conflict with PR
6085
@github-actions github-actions bot added the 💥 Merge Conflicts 💥 Merge Conflicts label Jul 14, 2022
Teiron and others added 6 commits July 15, 2022 13:23
* Polish translations of meat

* add additinal polish translations of popular ingredients
Implementing perltidy to t/dataquality.t , t/dataqualityfood.t , t/export.t
* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* update taxonomy and tests

Co-authored-by: Stéphane Gigandet <stephane@openfoodfacts.org>
* docs: Add how-to for remote dev (Gitpod)
* docs: Add references/badges for gitpod environments
…#6980)

* feat: knowledge panels for nutrient levels #6947

* add quantity in nutrient panel title

* facts + recommendations for salt

* fixed conflict

* add info and recommendations for sugars, fat and saturated fat
Commented outunused variable, severity 3 so that there are less merge
conflicts when implementing perltidy to files.
Making sure that perlcritic doesn't look into .git directory
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions github-actions bot added categories 📚 Documentation Documentation issues improve the project for everyone. 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies 🧬 Taxonomies - Rebuild Taxonomies are compiled before they can be used. Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. Translations We use a non-standard version of GetText, lack language variants support translate.openfoodfacts.org labels Jul 18, 2022
@dipietroR dipietroR merged commit cd6586e into perlcritic Jul 18, 2022
@dipietroR dipietroR deleted the unused-variables branch July 18, 2022 15:53
alexgarel pushed a commit that referenced this pull request Jul 19, 2022
* refactor: adding perltidy to t/lang.t (#7044)

Implementing perltidy to t/lang.t , will have a merge conflict with PR
6085

* taxonomy: add new Polish translations (#7068)

* Polish translations of meat

* add additinal polish translations of popular ingredients

* taxonomy: Corrections to cheeses (#7065)

Update categories.txt

* refactor: adding perltidy to files (#7070)

Implementing perltidy to t/dataquality.t , t/dataqualityfood.t , t/export.t

* taxonomy: flaxseed fiber (#6945)

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* Update ingredients.txt

* update taxonomy and tests

Co-authored-by: Stéphane Gigandet <stephane@openfoodfacts.org>

* docs: Add how-to for remote dev (Gitpod) (#7053)

* docs: Add how-to for remote dev (Gitpod)
* docs: Add references/badges for gitpod environments

* feat: Nutrient levels knowledge panels with facts and recommendations (#6980)

* feat: knowledge panels for nutrient levels #6947

* add quantity in nutrient panel title

* facts + recommendations for salt

* fixed conflict

* add info and recommendations for sugars, fat and saturated fat

* fix: fix vitamin b1 thiamin %DV  (#7072)

fix: fix vitamin b1 thiamin %DV #6882

* refactor: updating perl critic

Changing the perl critic config file to make it easier to pick and
choose what tests will run.

* feat: perlcritic unused variables check

* refactor: perlcritic github testing

* fetch depth

* add perlcritic

* better error message

* all errors

* allow ProductOpener::PerlStandards

* remove undef

* comment out severity 3

Commented outunused variable, severity 3 so that there are less merge
conflicts when implementing perltidy to files.

* refactor: dont look into .git directory

Making sure that perlcritic doesn't look into .git directory

* adding perlcritic to Makefile

* moving perlcritic to pull_request.yml

* default for perlcritic

* refactor: uncomment severity 3

* refactor: removing unused variables

Co-authored-by: Teiron <12804636+Teiron@users.noreply.github.com>
Co-authored-by: moon-rabbitOFF <34795011+moon-rabbitOFF@users.noreply.github.com>
Co-authored-by: Stéphane Gigandet <stephane@openfoodfacts.org>
Co-authored-by: Tushar <ditsuke@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
categories Display 📚 Documentation Documentation issues improve the project for everyone. 🌳 Forest Footprint This is a score designed by a French NGO to assess the deforestation impact (in sq meters) 🥗 Ingredients 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels 💥 Merge Conflicts 💥 Merge Conflicts Tags 🧬 Taxonomies - Rebuild Taxonomies are compiled before they can be used. 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. 🧪 tests Translations We use a non-standard version of GetText, lack language variants support translate.openfoodfacts.org
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants