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

Fix multiple rubocop violations #9272

Merged
merged 13 commits into from
Jun 9, 2022

Conversation

alecslupu
Copy link
Contributor

@alecslupu alecslupu commented May 9, 2022

🎩 What? Why?

Fix the following Rubocop violations:

  • Style/HashConversion
  • Style/QuotedSymbols
  • Security/Open
  • Security/IoMethods
  • Naming/VariableNumber

📌 Related Issues

Link your PR to an issue

Testing

This PR does not add any new Decidim functionality

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Please add screenshots of the changes you're proposing
Description

♥️ Thank you!

@alecslupu alecslupu added dependencies Pull requests that update a dependency file or issues that talk about updating dependencies type: internal PRs that aren't necessary to add to the CHANGELOG for implementers labels May 9, 2022
@alecslupu alecslupu force-pushed the ale-fix-rubocops branch 7 times, most recently from 8232ab5 to 862189f Compare May 10, 2022 16:35
@alecslupu alecslupu mentioned this pull request May 11, 2022
12 tasks
@alecslupu alecslupu changed the title Fix Style/HashConversion Fix multiple rubocop violations May 12, 2022
@alecslupu alecslupu marked this pull request as ready for review May 12, 2022 05:54
@alecslupu alecslupu requested a review from ahukkanen May 12, 2022 05:54
@alecslupu
Copy link
Contributor Author

@ahukkanen , this PR can be reviewed.
There are only 4 Rubocops violations that require attention.

Please have a look and decide if Gemspec/RequireMFA should be left disabled, if you can address it.

The other 3 remaining can be addressed on a later date, or via a chore task.

Currently:

6255 files inspected, 118 offenses detected, 30 offenses auto-correctable

Copy link
Contributor

@ahukkanen ahukkanen left a comment

Choose a reason for hiding this comment

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

Thanks @alecslupu once again!

Could you please revert the changes in other locales than en.yml please?

Those will be automatically updated through Crowdin and if we manually edit those files, it may mean also manually fixing the merge conflicts in the Crowdin PRs.

That's why we only want to do changes in the en.yml files.

@andreslucena
Copy link
Member

@alecslupu there's some pending comment, can you take it a look please? Thanks

@ahukkanen ahukkanen merged commit af017af into decidim:develop Jun 9, 2022
andreslucena pushed a commit that referenced this pull request Jul 6, 2022
* Fix Style/HashConversion

* Fix Style/QuotedSymbols

* Fix: Security/Open

* Fix Security/IoMethods

* Refactor for Naming/VariableNumber

* Rename total_admins_last_24 stat to mitigate Rubocop Naming/VariableNumber

* Rename total_participants_last_24 stat to mitigate Rubocop Naming/VariableNumber

* Finish Naming/VariableNumber refactor

* Cleanup the rubocop disabled

* Revert changes done in other languages than en

* Revert changes done in other languages than en

* Fix lnting issues

Co-authored-by: roxana.oprescu <roxana.oprescu@tremend.com>
Co-authored-by: roxanaopr <66411127+roxanaopr@users.noreply.github.com>
eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
* Fix Style/HashConversion

* Fix Style/QuotedSymbols

* Fix: Security/Open

* Fix Security/IoMethods

* Refactor for Naming/VariableNumber

* Rename total_admins_last_24 stat to mitigate Rubocop Naming/VariableNumber

* Rename total_participants_last_24 stat to mitigate Rubocop Naming/VariableNumber

* Finish Naming/VariableNumber refactor

* Cleanup the rubocop disabled

* Revert changes done in other languages than en

* Revert changes done in other languages than en

* Fix lnting issues

Co-authored-by: roxana.oprescu <roxana.oprescu@tremend.com>
Co-authored-by: roxanaopr <66411127+roxanaopr@users.noreply.github.com>
@alecslupu alecslupu added this to the 0.27.0 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file or issues that talk about updating dependencies type: internal PRs that aren't necessary to add to the CHANGELOG for implementers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants