https://github.com/brlin-tw/git_pre-commit_hook_for_gnu_bash_projects
Check all changes in GNU Bash script on commit!
https://github.com/brlin-tw/git_pre-commit_hook_for_gnu_bash_projects
automation bash checker git gnu pre-commit scripting
Last synced: about 1 month ago
JSON representation
Check all changes in GNU Bash script on commit!
- Host: GitHub
- URL: https://github.com/brlin-tw/git_pre-commit_hook_for_gnu_bash_projects
- Owner: brlin-tw
- Created: 2017-05-13T13:51:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T18:00:10.000Z (over 4 years ago)
- Last Synced: 2025-03-15T19:42:32.546Z (over 1 year ago)
- Topics: automation, bash, checker, git, gnu, pre-commit, scripting
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- Contributing: CONTRIBUTING.markdown
Awesome Lists containing this project
README
# 用於 GNU Bash 專案的 Git 提交版本前掛勾程式
Git Pre-commit Hook for GNU Bash Projects
[](https://travis-ci.org/Lin-Buo-Ren/Git_Pre-commit_Hook_for_GNU_Bash_Projects)
Check all changes in GNU Bash script on commit!
## Deprecation Notice
This project has been superseded by [pre-commit - A framework for managing and maintaining multi-language pre-commit hooks](https://pre-commit.com/), which is far more flexible and feature-rich than this project can provide. It is recommended to use that instead.
A sample pre-commit and Travis CI configuration has applied to this project for reference, checkout the `.pre-commit-config.yaml` and `.travis.yml` file for more info.
## 作者
Author
林博仁 et. al.
## 智慧財產授權條款
Intellectual Property License
GPLv3
## 如何使用本軟體
How to Use This Software
0. Install [ShellCheck](https://www.shellcheck.net/), and make sure `shellcheck` is in your `PATH` environment variable
1. Add this Git repository as your project's sub-module
2. Create a symbolic link to `pre-commit.bash` from `.git/hooks/pre-commit`
3. Profit! All your bash scripts with `.bash` filename extension in staging area will be automatically checked by ShellCheck during commit attempt, commit will fail if any warnings or errors occurred.