File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,21 @@ A linter that detect the possibility to use variables/constants from the Go stan
6
6
7
7
## Install
8
8
9
+ ### ` go install `
10
+
9
11
``` bash
10
12
go install github.com/sashamelentyev/usestdlibvars@latest
11
13
```
12
14
15
+ ### ` golangci-lint `
16
+
17
+ ` usestdlibvars ` is already integrated with
18
+ [ golangci-lint] ( https://github.com/golangci/golangci-lint ) .
19
+
13
20
## Usage
14
21
22
+ ### Binary
23
+
15
24
``` console
16
25
$ usestdlibvars -h
17
26
usestdlibvars: A linter that detect the possibility to use variables/constants from the Go standard library.
@@ -70,6 +79,12 @@ Flags:
70
79
-v no effect (deprecated)
71
80
```
72
81
82
+ ### ` golangci-lint `
83
+
84
+ ``` console
85
+ golangci-lint run --disable-all --enable usestdlibvars
86
+ ```
87
+
73
88
## Examples
74
89
75
90
``` go
You can’t perform that action at this time.
0 commit comments