Skip to content

About

No description, website, or topics provided.

Resources

Stars

18 stars

Watchers

2 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

pre-commit-shfmt hook

pre-commit hook which runs shfmt on shell script files.

Example .pre-commit-config.yaml:

- repo: https://github.com/pecigonzalo/pre-commit-shfmt
  sha: master
  hooks:
    - id: shell-fmt
      args:
        - -i
        - "2"

Enjoy the clean code!

Variations

This pre-commit provides 3 variations of the shfmt hook.

  • id: shell-fmt: Uses the system provided shfmt binary.
  • id: shell-fmt-docker: Uses a docker image shfmt container.
  • id: shell-fmt-go: USes a Go install shfmt package.

About

No description, website, or topics provided.

Resources

Stars

18 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors