- Fix a bug where
pre-commit listwould bomb when you had older versions ofpre-commitinstalled - Smarter debugger check allows you to leave
debuggerin comments, quotes, or other intended uses - Add a
pre-commit runCLI command - Fix intermittent install failures #154
- Account for the
RuboCoptop level namespace case sensitivity change.
- Fix an error that occurred when adding a git submodule
- Adds --force-exclusion option to rubocop CLI
- Add a JSON check -- checks if JSON is parsable.
- Add a YAML check -- checks if YAML is parsable.
- Add an SCSS-Lint check -- scss-lint is a tool to help keep your SCSS files clean and readable.
- The
console.logcheck will run on coffe script files as well.
- Add a standard way for checks to find a config file.
check_name.config
- use
getto read rubocop.config, fix #124
- Add a
Gocheck - Fix for bug: "Could not find template default"
- Hashrockets check only runs on Ruby files
- Fix "uninitialized constant" bug when running Rubocop
- Add CSSLint support
- New configuration strategies -- backwards compatible with old configuration
- Add a
before_allcheck for RSpecbefore(:all)blocks. - Add a
coffeelintcheck. - Do not load
execjsunless JavaScript checks are enabled - Load checks with pluginator
- Allow configuration of warnings (log to
stderr, but do not abort the commit) ingit config pre-commit.warnings - Use the Apache 2.0 liscense
- The
nb_spacecheck reads files in utf-8
- Converted the hook template to shell (instead of ruby) keep an eye out for problems, and file an issue if anything comes up https://github.com/jish/pre-commit/issues
- Added a
pre-commit.rubygit config option. If this option is set, the hook will use that ruby.git config pre-commit.ruby "ruby" - Drop
Ruby 1.8.7support
- Enhancement: Migration check will ensure the proper versions are in the schema file
- Does not run the debugger check on
Gemfile,Gemfile.lock
- adding spec directory to checked dirs of pry and debugger
- Better system ruby suppot on Mac OS.
- Added a check for
binding.pry - Allowing
mount Application::API => '/api'syntax in the hashrocket check - Added a check for
:focusin rspec tests.
- Added a
localcheck. Will runconfig/pre-commit.rband pass or fail accordingly.
- Properly require
ruby_symbol_hashrockets.
- Adding a Ruby hashrocket syntax check. If you're into that kind of thing.
- Checking for
rbenvon boot as well asrvm
- Detecting if the pre-commit gem is no longer installed. This is usually due to a Ruby version upgrade.
- Only running the ConsoleLog check on javascript files.
- Fix for Mountain Lion's grep.
- Adding the merge conflict check to the list of default checks
- Fixing a segmentation fault that was occurring when some people did not have the proper ruby setup in their environment
- Adding the option to overwrite existing pre-commit hooks during installation
- Removing arguments from the shebang line as these are not interpreted the same way on all operating systems
- Upgrading JSHint
- Playing nicely with execjs
- Fixing typos
- Adding a php check
- Detecting leading whitespace before leading tabs in the tabs check.
- The previous release handled some error reporting when using therubyracer vm. This release fixes errors if you're using ExecJS and do not have therubyracer installed.
- Better error reporting when JSHint stops scanning a file for errors half way through
- Adding a JSHint config file. You can put your options in a .jshintrc file
- Adding a ci check. You can run a quick test suite each time you commit.
- Adding a migration sanity check
- Allowing commented out console.log to pass (only single line comment support for now =/)
- Adding JSHint support
- Making JSHint a default check
- Pre commit would fail -- silently :( -- when adding new .js files due to an error in the jslint check.
- On the debugger check, only checking the lines that the committer has added. (thanks to staugaard for pointing this out)
- Adding a reminder that the pre-commit check can be bypassed using
git commit -n
- The tabs check was detecting leading tabs in binary files. The tabs check no longer checks binary files. (thanks to morten for pointing this out)