Skip to content

Commit

Permalink
Merge pull request #5 from alexandear/fix-dupword-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jjti authored Jan 4, 2024
2 parents 7cdaf5e + 38e83a3 commit d5e9b8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ linters:
- containedctx
- decorder # checks declaration order and count of types, constants, variables and functions
- dogsled
- dupword # checks for duplicate words in the source code
- durationcheck # checks for two durations multiplied together
- errcheck
- errname
Expand Down
2 changes: 1 addition & 1 deletion spancheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ type spanVar struct {
vr *types.Var
}

// runFunc checks if the the node is a function, has a span, and the span never has SetStatus set.
// runFunc checks if the node is a function, has a span, and the span never has SetStatus set.
func runFunc(pass *analysis.Pass, node ast.Node, config *Config) {
// copying https://cs.opensource.google/go/x/tools/+/master:go/analysis/passes/lostcancel/lostcancel.go

Expand Down

0 comments on commit d5e9b8d

Please sign in to comment.