docs: fix typo in 'e.g.' ()

This commit is contained in:
Oleksandr Redko 2024-03-05 17:46:44 +02:00 committed by GitHub
parent 98f0a9eac0
commit f18e6c3700
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions
.golangci.reference.yml
pkg/result/processors

@ -2054,7 +2054,7 @@ linters-settings:
# Align and sort can be used together or separately. # Align and sort can be used together or separately.
# #
# Whether enable align. If true, the struct tags will be aligned. # Whether enable align. If true, the struct tags will be aligned.
# eg: # e.g.:
# type FooBar struct { # type FooBar struct {
# Bar string `json:"bar" validate:"required"` # Bar string `json:"bar" validate:"required"`
# FooFoo int8 `json:"foo_foo" validate:"required"` # FooFoo int8 `json:"foo_foo" validate:"required"`
@ -2068,7 +2068,7 @@ linters-settings:
align: false align: false
# Whether enable tags sort. # Whether enable tags sort.
# If true, the tags will be sorted by name in ascending order. # If true, the tags will be sorted by name in ascending order.
# eg: `xml:"bar" json:"bar" validate:"required"` -> `json:"bar" validate:"required" xml:"bar"` # e.g.: `xml:"bar" json:"bar" validate:"required"` -> `json:"bar" validate:"required" xml:"bar"`
# Default: true # Default: true
sort: false sort: false
# Specify the order of tags, the other tags will be sorted by name. # Specify the order of tags, the other tags will be sorted by name.

@ -27,7 +27,7 @@ func (p Cgo) Name() string {
func (p Cgo) Process(issues []result.Issue) ([]result.Issue, error) { func (p Cgo) Process(issues []result.Issue) ([]result.Issue, error) {
return filterIssuesErr(issues, func(i *result.Issue) (bool, error) { return filterIssuesErr(issues, func(i *result.Issue) (bool, error) {
// some linters (.e.g gosec, deadcode) return incorrect filepaths for cgo issues, // some linters (e.g. gosec, deadcode) return incorrect filepaths for cgo issues,
// also cgo files have strange issues looking like false positives. // also cgo files have strange issues looking like false positives.
// cache dir contains all preprocessed files including cgo files // cache dir contains all preprocessed files including cgo files