1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-08-06 17:22:43 +03:00
Files
Will Rouesnel 5b9fea01ee Add cross-compilation Makefile targets and tar-based releases.
Revamp the build system to be more inline with other Prometheus exporters.
Notably add Darwin and Windows build targets, and add support for releases
using tar files.
2017-11-30 13:17:13 +10:00
..

unparam

Build Status

go get -u github.com/mvdan/unparam

Reports unused function parameters in your code.

To minimise false positives, it ignores:

  • Unnamed and underscore parameters
  • Funcs whose signature matches a reachable func type
  • Funcs whose signature matches a reachable interface method
  • Funcs that have empty bodies
  • Funcs that will almost immediately panic or return constants

False positives can still occur by design. The aim of the tool is to be as precise as possible - if you find any, file a bug.

Note that "reachable" means func signatures found in top-level declarations in each package and all of its direct dependencies. The tool ignores transitive dependencies and local signatures.