Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Add ShellCheck to pre-commit config #718

Merged
merged 8 commits into from
Sep 20, 2022
Merged

Conversation

MustkimKhatik
Copy link
Contributor

@MustkimKhatik MustkimKhatik commented Sep 8, 2022

Related to WordPress/openverse#289

adding shellcheck to openverse-catalog repo

adding shellcheck to openverse-catalog
@MustkimKhatik MustkimKhatik requested a review from a team as a code owner September 8, 2022 14:10
@openverse-bot openverse-bot added the 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work label Sep 8, 2022
.pre-commit-config.yaml Outdated Show resolved Hide resolved
@dhruvkb dhruvkb added 🟩 priority: low Low priority and doesn't need to be rushed 🤖 aspect: dx Concerns developers' experience with the codebase 🧰 goal: internal improvement Improvement that benefits maintainers, not users and removed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Sep 8, 2022
Co-authored-by: Dhruv Bhanushali <dhruv_b@live.com>
@MustkimKhatik
Copy link
Contributor Author

Yeah I did that change

@dhruvkb
Copy link
Member

dhruvkb commented Sep 8, 2022

@MustkimKhatik ShellCheck is now running as expected, and flagging a number of warnings and errors. Could you take a look at the ShellCheck output and implement the changes it recommends?

@MustkimKhatik
Copy link
Contributor Author

Yeah, I'll do them!

@krysal
Copy link
Member

krysal commented Sep 15, 2022

@MustkimKhatik are you still able to take on the ShellCheck recommendations to fix the "CI + CD / Lint" check?

@MustkimKhatik
Copy link
Contributor Author

Yep, I'm on them.

Syntax correction in ```entrypoint.sh```
Syntax correction in ```dag-sync.sh```
Syntax correction in ```prettify.sh```
@MustkimKhatik
Copy link
Contributor Author

Hey @krysal, current in dag-sync.sh, it was unused variable and to resolve it I used echo. there was a option to export too. I will appreciate if you tell me what will be more appropriate here to use?

@krysal krysal requested a review from dhruvkb September 16, 2022 14:40
Copy link
Member

@dhruvkb dhruvkb left a comment

Choose a reason for hiding this comment

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

Apart from one change, this looks good to me. Thanks @MustkimKhatik!

dag-sync.sh Outdated Show resolved Hide resolved
@MustkimKhatik
Copy link
Contributor Author

Apart from one change, this looks good to me. Thanks @MustkimKhatik!

Sure, I'll do that change.

some syntax correction in dag-sync
@AetherUnbound AetherUnbound changed the title Update .pre-commit-config.yaml Add spellcheck to pre-commit config Sep 20, 2022
Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

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

This is such a useful addition, it feels like magic! Thank you for your contribution, @MustkimKhatik, and welcome to Openverse!

@MustkimKhatik
Copy link
Contributor Author

This is such a useful addition, it feels like magic! Thank you for your contribution, @MustkimKhatik, and welcome to Openverse!

You're welcome and that's my pleasure to work with openverse!

Copy link
Contributor

@AetherUnbound AetherUnbound 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 for the addition, the changes look great!

@dhruvkb dhruvkb merged commit 28bfd16 into WordPress:main Sep 20, 2022
@dhruvkb dhruvkb changed the title Add spellcheck to pre-commit config Add ShellCheck to pre-commit config Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤖 aspect: dx Concerns developers' experience with the codebase 🧰 goal: internal improvement Improvement that benefits maintainers, not users 🟩 priority: low Low priority and doesn't need to be rushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants