Skip to content

[Feature] Add shellcheck to pre-commit #2932

@MortalHappiness

Description

@MortalHappiness

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Add https://github.com/koalaman/shellcheck-precommit to pre-commit.

Add the following snippets to .pre-commit-config.yaml

  - repo: https://github.com/koalaman/shellcheck-precommit
    rev: v0.10.0
    hooks:
      - id: shellcheck

And run pre-commit run shellcheck --all-files to fix all errors.

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions