Skip to content

build: add shellcheck pre-commit hook#1130

Merged
behnazh-w merged 1 commit into
mainfrom
110-add-shellcheck-as-a-git-pre-commit-hook
Jul 22, 2025
Merged

build: add shellcheck pre-commit hook#1130
behnazh-w merged 1 commit into
mainfrom
110-add-shellcheck-as-a-git-pre-commit-hook

Conversation

@behnazh-w

Copy link
Copy Markdown
Member

Summary

Adds the shellcheck pre-commit hook to improve shell script quality and catch common scripting issues early in the development workflow.

Description of changes

This PR makes the following changes:

  • Adding shellcheck to the .pre-commit-config.yaml file.
  • Fixing existing shellcheck issues in our scripts.
  • Excluding any shell scripts under the test/ directory, as these are test resources not intended for linting.

Related issues

Closes #110

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w behnazh-w requested a review from tromai as a code owner July 22, 2025 01:18
@behnazh-w behnazh-w linked an issue Jul 22, 2025 that may be closed by this pull request
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 22, 2025
@behnazh-w behnazh-w added this to the Release version 0.17.0 milestone Jul 22, 2025
@behnazh-w behnazh-w merged commit 006c42a into main Jul 22, 2025
9 checks passed
@behnazh-w behnazh-w deleted the 110-add-shellcheck-as-a-git-pre-commit-hook branch July 22, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add shellcheck as a Git pre-commit hook

2 participants