Skip to content

Commit

Permalink
Merge pull request #16 from adarnimrod/master
Browse files Browse the repository at this point in the history
Added pre-commit hook
  • Loading branch information
purcell authored Dec 30, 2018
2 parents 64b1f6f + 95efab3 commit 8c7d072
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- id: sqlint
name: sqlint
entry: sqlint
language: ruby
minimum_pre_commit_version: 0.15.0
types: [sql]
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ Support for `sqlint` is provided for the following editors:
- VIM, via [Syntastic](https://github.com/scrooloose/syntastic), [Neomake](https://github.com/neomake/neomake) or [ALE](https://github.com/w0rp/ale)
- SublimeText, via [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter3/)


### Using with pre-commit

Add this to your `.pre-commit-hooks.yaml`:

```yaml
- repo: https://github.com/purcell/sqlint
rev: master
hooks:
- id: sqlint
```
### Authors
This software was written by
Expand Down

0 comments on commit 8c7d072

Please sign in to comment.