https://github.com/rubyonworld/git-ruby-syntax-check
A hook script to verify that only syntactically valid ruby code is commited.
https://github.com/rubyonworld/git-ruby-syntax-check
code hook script syntactic valid verify
Last synced: about 1 month ago
JSON representation
A hook script to verify that only syntactically valid ruby code is commited.
- Host: GitHub
- URL: https://github.com/rubyonworld/git-ruby-syntax-check
- Owner: RubyOnWorld
- License: mit
- Created: 2022-09-27T15:27:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T17:10:45.000Z (about 3 years ago)
- Last Synced: 2024-12-28T14:26:19.976Z (12 months ago)
- Topics: code, hook, script, syntactic, valid, verify
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DESCRIPTION
A hook script to verify that only syntactically valid ruby code is commited.
# INSTALLATION
Put this code into a file called "pre-commit" inside your .git/hooks
directory, and make sure it is executable ("chmod +x .git/hooks/pre-commit")
# REQUIREMENTS
Requires Ruby 1.8.6 or better, Git 1.7 or better
If Rubinius is installed and available via `rbx`, the hook will use it to test the Ruby files for warnings and errors.
# SIMILAR PROJECTS
* [Code Beautifier.tmbundle][beautify] by [Joel Chippindale (mocoso)](mocoso) does something similar for TextMate.
[beautify]: http://github.com/mocoso/code-beautifier.tmbundle "Code Beautifier.tmbundle"
[mocoso]: http://github.com/mocoso "Joel Chippindale"
# LICENSE
Licensed under the MIT License. See LICENSE file for details.
# AUTHORS
Written by Markus Prinz, with contributions by Jérémy Lecour