Skip to content

Commit 90e7760

Browse files
committed
Add a pre-commit config.
1 parent 7c684e4 commit 90e7760

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

Diff for: .pre-commit-config.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-json
6+
- id: check-yaml
7+
- id: check-vcs-permalinks
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
11+
- repo: https://github.com/markdownlint/markdownlint
12+
rev: v0.11.0
13+
hooks:
14+
- id: markdownlint
15+
args: ["-r", "~MD013", "-r", "~MD046"]

Diff for: README.md

-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ E.g.:
1818
eggsAn|dCheese -> dav -> eggsCheese
1919
_privat|e_thing -> dav -> _thing
2020

21-
2221
It will also preserve case for small camels when initial segments are deleted
2322
(with `av`):
2423

2524
_g|etJiggyYo -> dav -> _jiggyYo
2625

27-
2826
Requires [vim-textobj-user](https://github.com/kana/vim-textobj-user).

Diff for: t/variable-segment.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ describe 'iv'
207207
end
208208

209209
it 'respects &iskeyword'
210-
let original = &iskeyword
210+
let original = &iskeyword
211211
set iskeyword=a-z,_,'
212212
put! = 'bag_of_spam'' stuff'
213213
normal! 9|
@@ -426,7 +426,7 @@ describe 'av'
426426
end
427427

428428
it 'respects &iskeyword'
429-
let original = &iskeyword
429+
let original = &iskeyword
430430
set iskeyword=a-z,_,'
431431
put! = 'bag_of_spam'' stuff'
432432
normal! 9|

0 commit comments

Comments
 (0)