Skip to content

Commit

Permalink
docs: fix typo in 'e.g.' (#4461)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Mar 5, 2024
1 parent 98f0a9e commit f18e6c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@ linters-settings:
# Align and sort can be used together or separately.
#
# Whether enable align. If true, the struct tags will be aligned.
# eg:
# e.g.:
# type FooBar struct {
# Bar string `json:"bar" validate:"required"`
# FooFoo int8 `json:"foo_foo" validate:"required"`
Expand All @@ -2068,7 +2068,7 @@ linters-settings:
align: false
# Whether enable tags sort.
# 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
sort: false
# Specify the order of tags, the other tags will be sorted by name.
Expand Down
2 changes: 1 addition & 1 deletion pkg/result/processors/cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (p Cgo) Name() string {

func (p Cgo) Process(issues []result.Issue) ([]result.Issue, 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.

// cache dir contains all preprocessed files including cgo files
Expand Down

0 comments on commit f18e6c3

Please sign in to comment.