aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/macabu/inamedparam/README.md
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-03-04 17:40:11 +0000
committerTaras Madan <tarasmadan@google.com>2024-03-04 18:34:55 +0000
commit5fc5366972c874b919f93165bb4ed4e2bcb7c350 (patch)
tree287c3361a0dee0c72af80d9a1a66714a06e98a62 /vendor/github.com/macabu/inamedparam/README.md
parent1be5ce38a9059c356eb193a8c34d60d61c9fc31f (diff)
mod: bump github.com/golangci/golangci-lint from 1.55.2 to 1.56.2
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.55.2 to 1.56.2. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](https://github.com/golangci/golangci-lint/compare/v1.55.2...v1.56.2) --- updated-dependencies: - dependency-name: github.com/golangci/golangci-lint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
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
+```