File tree 2 files changed +25
-0
lines changed 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ - id : misspell
2
+ name : misspell
3
+ description : Correct commonly misspelled English words... quickly
4
+ language : golang
5
+ entry : misspell
6
+ args :
7
+ - -w
8
+ - -error
Original file line number Diff line number Diff line change @@ -67,6 +67,23 @@ Usage of misspell:
67
67
-w Overwrite file with corrections (default is just to display)
68
68
```
69
69
70
+ ### Pre-commit hook
71
+
72
+ To use misspell with [ pre-commit] ( https://pre-commit.com/ ) , add the following to your ` .pre-commit-config.yaml ` :
73
+
74
+
75
+ ``` yaml
76
+ - repo : https://github.com/golangci/misspell
77
+ rev : v0.6.0
78
+ hooks :
79
+ - id : misspell
80
+ # The hook will run on all files by default.
81
+ # To limit to some files only, use pre-commit patterns/types
82
+ # files: <pattern>
83
+ # exclude: <pattern>
84
+ # types: <types>
85
+ ```
86
+
70
87
## FAQ
71
88
72
89
* [ Automatic Corrections] ( #correct )
You can’t perform that action at this time.
0 commit comments