projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.1.1
/
stylecheck
/
testdata
/
src
/
CheckIncDec.disabled
/
CheckIncDec.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckIncDec.disabled/CheckIncDec.go
b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckIncDec.disabled/CheckIncDec.go
new file mode 100644
(file)
index 0000000..
c8aa51d
--- /dev/null
+++ b/
.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckIncDec.disabled/CheckIncDec.go
@@ -0,0
+1,13
@@
+// Package pkg ...
+package pkg
+
+func fn() {
+ var x int
+ x--
+ x++
+ x += 1 // want `should replace x \+= 1 with x\+\+`
+ x -= 1 // want `should replace x -= 1 with x--`
+ x /= 1
+ x += 2
+ x -= 2
+}