aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/tetafro
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-09-10 12:16:33 +0200
committerTaras Madan <tarasmadan@google.com>2024-09-10 14:05:26 +0000
commitc97c816133b42257d0bcf1ee4bd178bb2a7a2b9e (patch)
tree0bcbc2e540bbf8f62f6c17887cdd53b8c2cee637 /vendor/github.com/tetafro
parent54e657429ab892ad06c90cd7c1a4eb33ba93a3dc (diff)
vendor: update
Diffstat (limited to 'vendor/github.com/tetafro')
-rw-r--r--vendor/github.com/tetafro/godot/.golangci.yml9
-rw-r--r--vendor/github.com/tetafro/godot/checks.go5
2 files changed, 7 insertions, 7 deletions
diff --git a/vendor/github.com/tetafro/godot/.golangci.yml b/vendor/github.com/tetafro/godot/.golangci.yml
index ea380eb83..b9e443581 100644
--- a/vendor/github.com/tetafro/godot/.golangci.yml
+++ b/vendor/github.com/tetafro/godot/.golangci.yml
@@ -1,9 +1,6 @@
run:
concurrency: 2
- deadline: 5m
-
-skip-dirs:
- - path: ./testdata/
+ timeout: 5m
linters:
disable-all: true
@@ -13,6 +10,7 @@ linters:
- cyclop
- dogsled
- durationcheck
+ - err113
- errcheck
- errname
- errorlint
@@ -25,7 +23,6 @@ linters:
- gocritic
- gocyclo
- godot
- - goerr113
- gofmt
- gofumpt
- goimports
@@ -64,6 +61,8 @@ issues:
exclude-use-default: false
exclude:
- "do not define dynamic errors, use wrapped static errors instead"
+ exclude-files:
+ - ./testdata/
exclude-rules:
- path: _test\.go
linters:
diff --git a/vendor/github.com/tetafro/godot/checks.go b/vendor/github.com/tetafro/godot/checks.go
index 0e53c220a..df5019f6c 100644
--- a/vendor/github.com/tetafro/godot/checks.go
+++ b/vendor/github.com/tetafro/godot/checks.go
@@ -171,7 +171,7 @@ func checkCapital(c comment) []Issue {
if state == endOfSentence && unicode.IsLower(r) {
pp = append(pp, position{
line: pos.line,
- column: runeToByteColumn(c.text, pos.column),
+ column: runeToByteColumn(c.lines[pos.line-1], pos.column),
})
}
state = empty
@@ -230,7 +230,8 @@ func isSpecialBlock(comment string) bool {
strings.Contains(comment, "#define")) {
return true
}
- if strings.HasPrefix(comment, "// Output: ") {
+ if strings.HasPrefix(comment, "// Output:") ||
+ strings.HasPrefix(comment, "// Unordered output:") {
return true
}
return false