This is a coarse-grained implementation of finding uses of unsafe pointers.
Compare capslock
Capslock looks at specific cases that are bad for unsafe pointers, such as conversions. (see comment here). This implementation just looks if the unsafe.Pointer method is used.
This is not necessarily a bad use, thus "coarse-grained".
Capslock only counts one occurrence per file, ~so I did similarly (>1 use of unsafe pointers in one file --> 1 occurrence)~
This is a coarse-grained implementation of finding uses of unsafe pointers.
Compare capslock
unsafe.Pointer
method is used.I will test this more thoroughly tomorrow or so.