aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/golangci/go-misc/deadcode/README.md
blob: 5504231281055b46cf0486475b814f6bd90b983e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# deadcode

`deadcode` is a very simple utility which detects unused declarations in a Go package.

## Usage
```
deadcode [-test] [packages]

    -test     Include test files
    packages  A list of packages using the same conventions as the go tool
```

## Limitations

* Self-referential unused code is not currently reported
* A single package can be tested at a time
* Unused methods are not reported