Skip to content

Commit d55cc88

Browse files
vterdunovjirfag
authored andcommitted
Fix nolint comment in readme
1 parent 3e87812 commit d55cc88

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ wget -O - -q https://install.goreleaser.com/github.com/golangci/golangci-lint.sh
5959

6060
golangci-lint --version
6161
```
62-
As a fallback you can also use `raw.githubusercontent.com`
62+
As a fallback you can also use `raw.githubusercontent.com`
6363
```bash
6464
# binary will be $GOPATH/bin/golangci-lint
6565
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GOPATH/bin vX.Y.Z
@@ -666,8 +666,8 @@ linters:
666666
# False Positives
667667
False positives are inevitable, but we did our best to reduce their count. For example, we have a default enabled set of [exclude patterns](#command-line-options). If a false positive occurred you have the following choices:
668668
1. Exclude issue by text using command-line option `-e` or config option `issues.exclude`. It's helpful when you decided to ignore all issues of this type.
669-
2. Exclude this one issue by using special comment `// nolint[:linter1,linter2,...]` on issued line.
670-
Comment `// nolint` disables all issues reporting on this line. Comment e.g. `// nolint:govet` disables only govet issues for this line.
669+
2. Exclude this one issue by using special comment `//nolint[:linter1,linter2,...]` on issued line.
670+
Comment `//nolint` disables all issues reporting on this line. Comment e.g. `//nolint:govet` disables only govet issues for this line.
671671
If you would like to completely exclude all issues for some function prepend this comment
672672
above function:
673673
```go

README.tmpl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ than the default and have more strict settings:
326326
# False Positives
327327
False positives are inevitable, but we did our best to reduce their count. For example, we have a default enabled set of [exclude patterns](#command-line-options). If a false positive occurred you have the following choices:
328328
1. Exclude issue by text using command-line option `-e` or config option `issues.exclude`. It's helpful when you decided to ignore all issues of this type.
329-
2. Exclude this one issue by using special comment `// nolint[:linter1,linter2,...]` on issued line.
330-
Comment `// nolint` disables all issues reporting on this line. Comment e.g. `// nolint:govet` disables only govet issues for this line.
329+
2. Exclude this one issue by using special comment `//nolint[:linter1,linter2,...]` on issued line.
330+
Comment `//nolint` disables all issues reporting on this line. Comment e.g. `//nolint:govet` disables only govet issues for this line.
331331
If you would like to completely exclude all issues for some function prepend this comment
332332
above function:
333333
```go

0 commit comments

Comments
 (0)