Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1110)

Unified Diff: cmd/vet/copylock.go

Issue 106510044: go.tools/cmd/vet: enable file level checker short-circuiting (Closed)
Patch Set: diff -r 0f0740bbe48a https://code.google.com/p/go.tools Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cmd/vet/composite.go ('k') | cmd/vet/deadcode.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/vet/copylock.go
===================================================================
--- a/cmd/vet/copylock.go
+++ b/cmd/vet/copylock.go
@@ -17,10 +17,13 @@
func init() {
register("copylocks",
"check that locks are not passed by value",
+ filterCopyLocks,
checkCopyLocks,
funcDecl)
}
+func filterCopyLocks(f *File) bool { return true }
+
// checkCopyLocks checks whether a function might
// inadvertently copy a lock, by checking whether
// its receiver, parameters, or return values
« no previous file with comments | « cmd/vet/composite.go ('k') | cmd/vet/deadcode.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b