pre-commit icon indicating copy to clipboard operation
pre-commit copied to clipboard

A slightly improved pre-commit hook for git

Results 18 pre-commit issues
Sort by recently updated
recently updated
newest added

The configuration is written in `pre_commit.yml`, with additional yaml checks. However, when I try to commit a yaml file (`pre_commit.yml`), which should be fine in syntax, I get an error....

When multiple migrations are made within one commit, pre-commit claims all of the migration timestamps should be written in schema.rb, which is impossible.

pre-commit ends up having duplicate evaluated checks. Can we add `uniq` on the evaluated check method to avoid duplication? ```yaml --- :checks_remove: [] :checks_add: - :local - :debugger - :rubocop...

Because Ruby Sass is [being deprecated](https://sass-lang.com/ruby-sass), and the developers [suggest](https://github.com/brigade/scss-lint#notice-consider-other-tools-before-adopting-scss-lint) moving to stylelint or sass-lint. It would be great to include one or both of these linters since projects are...

This is going to take a bit of doing, but was wondering about the conceptual parts of it first. When adding pre-commit to an existing codebase, there can be a...

Is it possible to ignore eslint warnings?

I'm not sure if this is generally useful but I've found it very important. This checks for accidental short-circuits often used in debugging, e.g. Rails views, to force a particular...

Are there any plans to include a plugin for detecting secrets that shouldn't be committed? Similar to the plugin for `detect-aws-credentials` on this project: http://pre-commit.com/hooks.html

Adds a reek check plugin. Reek is a static code analysis gem for Ruby. Unlike Rubocop, it doesn't do style, but catches several bad practices Rubocop misses.

feature
need info