mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
fix-rules-typo (#8681)
This commit is contained in:
parent
a0682088ab
commit
ff88a9393e
@ -76,7 +76,7 @@ func mismatchingUnlock(m dsl.Matcher) {
|
|||||||
m.Match(`$mu.Lock(); defer $mu.$unlock()`).
|
m.Match(`$mu.Lock(); defer $mu.$unlock()`).
|
||||||
Where(m["unlock"].Text == "RUnlock").
|
Where(m["unlock"].Text == "RUnlock").
|
||||||
At(m["unlock"]).
|
At(m["unlock"]).
|
||||||
Report(`maybe $2mu.Unlock() was intended?
|
Report(`maybe $mu.Unlock() was intended?
|
||||||
Rules are in ./rules.go file.`)
|
Rules are in ./rules.go file.`)
|
||||||
|
|
||||||
m.Match(`$mu.RLock(); defer $mu.$unlock()`).
|
m.Match(`$mu.RLock(); defer $mu.$unlock()`).
|
||||||
|
2
rules.go
2
rules.go
@ -75,7 +75,7 @@ func mismatchingUnlock(m dsl.Matcher) {
|
|||||||
m.Match(`$mu.Lock(); defer $mu.$unlock()`).
|
m.Match(`$mu.Lock(); defer $mu.$unlock()`).
|
||||||
Where(m["unlock"].Text == "RUnlock").
|
Where(m["unlock"].Text == "RUnlock").
|
||||||
At(m["unlock"]).
|
At(m["unlock"]).
|
||||||
Report(`maybe $2mu.Unlock() was intended?
|
Report(`maybe $mu.Unlock() was intended?
|
||||||
Rules are in ./rules.go file.`)
|
Rules are in ./rules.go file.`)
|
||||||
|
|
||||||
m.Match(`$mu.RLock(); defer $mu.$unlock()`).
|
m.Match(`$mu.RLock(); defer $mu.$unlock()`).
|
||||||
|
Loading…
Reference in New Issue
Block a user