File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ go install github.com/Abirdcfly/dupword/cmd/dupword@main
59
59
60
60
### 1. default
61
61
62
- Run with default settings(include test file, only check keywords ` the ` ,` a ` and ` and ` ):
62
+ Run with default settings(include test file):
63
+ ** But note that not all repeated words are wrong**
63
64
64
65
``` bash
65
66
$ dupword ./...
@@ -110,7 +111,7 @@ Flags:
110
111
-json
111
112
emit JSON output
112
113
-keyword value
113
- key words for detecting duplicate words (default the,and,a)
114
+ key words for detecting duplicate words
114
115
-memprofile string
115
116
write memory profile to this file
116
117
-source
@@ -124,6 +125,14 @@ Flags:
124
125
-v no effect (deprecated)
125
126
` ` `
126
127
128
+ # ## 5. my advice
129
+
130
+ use ` --keyword=the,and,a` and ` -fix` together.
131
+
132
+ ` ` ` bash
133
+ $ dupword --keyword=the,and,a -fix ./...
134
+ ` ` `
135
+
127
136
# # TODO
128
137
129
138
- [ ] add this linter to golangci-lint
You can’t perform that action at this time.
0 commit comments