fix-rules-typo (#8681)

This commit is contained in:
pwd123 2023-11-09 13:40:24 +09:00 committed by GitHub
parent a0682088ab
commit ff88a9393e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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()`).

View File

@ -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()`).