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
/
CheckYodaConditions
/
CheckYodaConditions.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckYodaConditions/CheckYodaConditions.go.golden
b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckYodaConditions/CheckYodaConditions.go.golden
new file mode 100644
(file)
index 0000000..
3ab6734
--- /dev/null
+++ b/
.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckYodaConditions/CheckYodaConditions.go.golden
@@ -0,0
+1,16
@@
+// Package pkg ...
+package pkg
+
+func fn(x string, y int) {
+ if x == "" { // want `Yoda`
+ }
+ if y == 0 { // want `Yoda`
+ }
+ if 0 > y {
+ }
+ if "" == "" {
+ }
+
+ if "" == "" || y == 0 { // want `Yoda`
+ }
+}