@evilmartians/lefthook 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/bin/lefthook-darwin-arm64/lefthook +0 -0
- package/bin/lefthook-darwin-x64/lefthook +0 -0
- package/bin/lefthook-freebsd-arm64/lefthook +0 -0
- package/bin/lefthook-freebsd-x64/lefthook +0 -0
- package/bin/lefthook-linux-arm64/lefthook +0 -0
- package/bin/lefthook-linux-x64/lefthook +0 -0
- package/bin/lefthook-openbsd-arm64/lefthook +0 -0
- package/bin/lefthook-openbsd-x64/lefthook +0 -0
- package/bin/lefthook-windows-arm64/lefthook.exe +0 -0
- package/bin/lefthook-windows-x64/lefthook.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,16 +19,16 @@ A Git hooks manager for Node.js, Ruby, Python and many other types of projects.
|
|
|
19
19
|
|
|
20
20
|
## Install
|
|
21
21
|
|
|
22
|
-
With **Go** (>= 1.
|
|
22
|
+
With **Go** (>= 1.26):
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
go install github.com/evilmartians/lefthook/v2@v2.1.
|
|
25
|
+
go install github.com/evilmartians/lefthook/v2@v2.1.4
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
* or as a go tool
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
go get -tool github.com/evilmartians/lefthook/v2@v2.1.
|
|
31
|
+
go get -tool github.com/evilmartians/lefthook/v2@v2.1.4
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
With **NPM**:
|
|
@@ -95,7 +95,7 @@ pre-commit:
|
|
|
95
95
|
run: yarn eslint {staged_files}
|
|
96
96
|
|
|
97
97
|
- name: lint backend
|
|
98
|
-
run: bundle exec rubocop --force-exclusion {all_files}
|
|
98
|
+
run: bundle exec rubocop --force-exclusion -- {all_files}
|
|
99
99
|
|
|
100
100
|
- name: stylelint frontend
|
|
101
101
|
files: git diff --name-only HEAD @{push}
|
|
@@ -113,7 +113,7 @@ pre-commit:
|
|
|
113
113
|
exclude:
|
|
114
114
|
- "*/application.rb"
|
|
115
115
|
- "*/routes.rb"
|
|
116
|
-
run: bundle exec rubocop --force-exclusion {all_files}
|
|
116
|
+
run: bundle exec rubocop --force-exclusion -- {all_files}
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
* ### **Execute in sub-directory**
|
|
@@ -125,7 +125,7 @@ pre-commit:
|
|
|
125
125
|
- name: lint backend
|
|
126
126
|
root: "api/" # Careful to have only trailing slash
|
|
127
127
|
glob: "*.rb" # glob filter
|
|
128
|
-
run: bundle exec rubocop {all_files}
|
|
128
|
+
run: bundle exec rubocop -- {all_files}
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
* ### **Run scripts**
|
|
@@ -198,7 +198,7 @@ If you want to run specific group of commands directly.
|
|
|
198
198
|
```yml
|
|
199
199
|
fixer:
|
|
200
200
|
jobs:
|
|
201
|
-
- run: bundle exec rubocop --force-exclusion --safe-auto-correct {staged_files}
|
|
201
|
+
- run: bundle exec rubocop --force-exclusion --safe-auto-correct -- {staged_files}
|
|
202
202
|
- run: yarn eslint --fix {staged_files}
|
|
203
203
|
```
|
|
204
204
|
```bash
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|