aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/macabu/inamedparam/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/macabu/inamedparam/README.md')
-rw-r--r--vendor/github.com/macabu/inamedparam/README.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/vendor/github.com/macabu/inamedparam/README.md b/vendor/github.com/macabu/inamedparam/README.md
index 80911c9d7..3336cb950 100644
--- a/vendor/github.com/macabu/inamedparam/README.md
+++ b/vendor/github.com/macabu/inamedparam/README.md
@@ -2,10 +2,16 @@
A linter that reports interfaces with unnamed method parameters.
+## Flags/Config
+```sh
+-skip-single-param
+ skip interfaces with a single unnamed parameter
+```
+
## Usage
### Standalone
-You can also run it standalone through `go vet`.
+You can run it standalone through `go vet`.
You must install the binary to your `$GOBIN` folder like so:
```sh
@@ -16,3 +22,17 @@ And then navigate to your Go project's root folder, where can run `go vet` in th
```sh
$ go vet -vettool=$(which inamedparam) ./...
```
+
+### golangci-lint
+`inamedparam` was added as a linter to `golangci-lint` on version `v1.55.0`. It is disabled by default.
+
+To enable it, you can add it to your `.golangci.yml` file, as such:
+```yaml
+run:
+ deadline: 30s
+
+linters:
+ disable-all: true
+ enable:
+ - inamedparam
+```