projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.0.1-2020.1.5
/
stylecheck
/
testdata
/
src
/
CheckYodaConditions
/
CheckYodaConditions.go
1
// Package pkg ...
2
package pkg
3
4
func fn(x string, y int) {
5
if "" == x { // want `Yoda`
6
}
7
if 0 == y { // want `Yoda`
8
}
9
if 0 > y {
10
}
11
if "" == "" {
12
}
13
14
if "" == "" || 0 == y { // want `Yoda`
15
}
16
}