Skip to content

Commit e401b34

Browse files
committed
review
1 parent 3214cac commit e401b34

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Diff for: .golangci.next.reference.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@ linters:
262262
fast: true
263263

264264
# Defines a set of rules to ignore issues.
265-
# It does not skip the analysis, and so don't ignore "typecheck" errors.
265+
# It does not skip the analysis, and so does not ignore "typecheck" errors.
266266
exclusions:
267267
# Mode of the generated files analysis.
268268
#
269-
# - `strict`: sources are excluded by following strictly the Go generated file convention.
269+
# - `strict`: sources are excluded by strictly following the Go generated file convention.
270270
# Source files that have lines matching only the following regular expression will be excluded: `^// Code generated .* DO NOT EDIT\.$`
271271
# This line must appear before the first non-comment, non-blank text in the file.
272272
# https://go.dev/s/generatedcode
273-
# - `lax`: sources are excluded if they contain lines `autogenerated file`, `code generated`, `do not edit`, etc.
273+
# - `lax`: sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`, etc.
274274
# - `disable`: disable the generated files exclusion.
275275
#
276276
# Default: lax
@@ -303,7 +303,7 @@ linters:
303303

304304
# Exclude known linters from partially hard-vendored code,
305305
# which is impossible to exclude via `nolint` comments.
306-
# `/` will be replaced by current OS file path separator to properly work on Windows.
306+
# `/` will be replaced by the current OS file path separator to properly work on Windows.
307307
- path: internal/hmac/
308308
text: "weak cryptographic primitive"
309309
linters:
@@ -320,10 +320,7 @@ linters:
320320
source: "^//go:generate "
321321

322322
# Which file paths to exclude: they will be analyzed, but issues from them won't be reported.
323-
# There is no need to include all autogenerated files,
324-
# we confidently recognize autogenerated files.
325-
# If it's not, please let us know.
326-
# "/" will be replaced by current OS file path separator to properly work on Windows.
323+
# "/" will be replaced by the current OS file path separator to properly work on Windows.
327324
# Default: []
328325
paths:
329326
- ".*\\.my\\.go$"

Diff for: docs/src/docs/usage/false-positives.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Use `//nolint` instead of `// nolint` because machine-readable comments should h
171171

172172
## Exclusion Presets
173173

174-
Some exclusions are considered as common, to help golangci-lint users those common exclusions are provided through presets.
174+
Some exclusions are considered common. To help golangci-lint users those common exclusions are provided through presets.
175175

176176
{.ExclusionPresets}
177177

0 commit comments

Comments
 (0)