Skip to content

Add shellcheck to all repositories #289

Closed

Description

Problem

We've made a few easy to avoid mistakes in shell scripts

WordPress/openverse-frontend#1640
WordPress/openverse-api#869

These can be avoided using shellcheck and following it's basic advice (always adding set -e, actual syntax checks, etc).

Description

Add shellcheck to all repositories. Even if any of these repositories don't have shell scripts, let's add it now before we introduce a shell script and forget about this. It doesn't hurt, after all.

Side note

It'd be nice if we used pre-commit on all repositories instead of having the frontend repository be the odd ball using husky. If we used pre-commit everywhere then we could just sync the pre-commit configuration and automagically have things working for all languages across all repositories the same way. I'll open another issue to think about that for the frontend repo.

Implementation

  • 🙋 I would be interested in implementing this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

good first issueNew-contributor friendlyhelp wantedOpen to participation from the community✨ goal: improvementImprovement to an existing user-facing feature🟨 priority: mediumNot blocking but should be addressed soon🤖 aspect: dxConcerns developers' experience with the codebase

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions