utexas / forty_acres
Default Drupal theme used with the UT Drupal Kit
Installs: 88 522
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Language:CSS
Type:drupal-custom-theme
- dev-master
- 3.17.1
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.1
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 3.0.0-beta.11
- 3.0.0-beta.10
- 3.0.0-beta.9
- 3.0.0-beta.8
- 3.0.0-beta.7
- 3.0.0-beta.6
- 3.0.0-beta.5
- 3.0.0-beta.4
- 3.0.0-beta.3
- 3.0.0-beta.2
- 3.0.0-beta.1
- dev-develop
- dev-465-bootstrap
- dev-582-table-links
- dev-583-menu-spacing-v2
- dev-583-menu-spacing
- dev-576-aria
- dev-576-menu-arialabelledby
This package is auto-updated.
Last update: 2024-04-23 22:23:02 UTC
README
Pre-commit hooks
You now have a pre-commit
file in your .github/
directory. It is pre-configured to check PHP code syntax (using PHP_CodeSniffer).
For the pre-commit
hooks, a little setup is involved.
- Allow your custom pre-commit hook to be executable:
chmod +x .github/pre-commit
- Tell your repository to look in
.github/
for hooks:
git config core.hooksPath .github/
- Add application-specific configuration:
cp .github/example.config.sh .github/config.sh
For PHP projects, follow the instructions for installing PHP Codesniffer.
If you want to use one/some of the checks, or add your own, add or remove them in the pre-commit file.
Usage
Easy-peasy. Run git commit
commands as you would normally. The pre-commit check will execute automatically, and you'll get output along the lines of:
git commit -m "Update pre-commit checks" -a Running pre-commit checks... To bypass this check, add '--no-verify' to your commit command Sniffing staged files via PHP Code Sniffer...