copyfighter icon indicating copy to clipboard operation
copyfighter copied to clipboard

Statically analyzes Go code and reports functions that are passing large structs by value

Results 6 copyfighter issues
Sort by recently updated
recently updated
newest added

Running copyfighter results in: `unable to type check package "main": /home/xxx/work/src/xxx/xxx.go:6:2: could not import xxx/xxx (can't find import: xxx/xxx)` The structure is something like this ``` ├── current_version ├── Dockerfile...

Tests in package `_test` are blackbox tests, and ignored by the Go compiler, but copyfighter errors with "more than one package found" error: ``` more than one package found in...

Under MacOS X, Golang 1.6, the commit 8a7223ed4b89567f5e763a1245b85c61df8263bf broke the tool: when using copyrighter with a package name postfixed with "/..." (so, not with a valid filesystem path), the tool...

It would be nice to able to output this data as JSON for processing by other tools. `printSitesAndExit` has it separated from the rest of the code semi-okay.

It's already supported when using a Go import path