docs: fix typo in 'e.g.' (#4461)
This commit is contained in:
parent
98f0a9eac0
commit
f18e6c3700
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user