Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

cisagov/pre-commit-shfmt

Repository files navigation

pre-commit-shfmt

GitHub Build Status

This is a pre-commit hook to format shell scripts using the shfmt tool.

Available Hooks

Hook name Description
shfmt Format shell script files with the shfmt tool.

Usage

repos:
  - repo: https://github.com/cisagov/pre-commit-shfmt
    rev: v0.0.2
    hooks:
      - id: shfmt
        args:
          - -i
          - '2'

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

About

Provides a pre-commit hook for the shfmt tool.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages