Skip to content

Commit

Permalink
Add golangci-lint example
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev committed Sep 24, 2022
1 parent aaf1ec6 commit b329728
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,21 @@ A linter that detect the possibility to use variables/constants from the Go stan

## Install

### `go install`

```bash
go install github.com/sashamelentyev/usestdlibvars@latest
```

### `golangci-lint`

`usestdlibvars` is already integrated with
[golangci-lint](https://github.com/golangci/golangci-lint).

## Usage

### Binary

```console
$ usestdlibvars -h
usestdlibvars: A linter that detect the possibility to use variables/constants from the Go standard library.
Expand Down Expand Up @@ -70,6 +79,12 @@ Flags:
-v no effect (deprecated)
```

### `golangci-lint`

```console
golangci-lint run --disable-all --enable usestdlibvars
```

## Examples

```go
Expand Down

0 comments on commit b329728

Please sign in to comment.