Skip to content

Commit 9f4951f

Browse files
build(deps): bump github.com/Antonboom/errname from 0.1.13 to 1.0.0 (#5057)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 10f281c commit 9f4951f

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
4d63.com/gochecknoglobals v0.2.1
88
github.com/4meepo/tagalign v1.3.4
99
github.com/Abirdcfly/dupword v0.1.1
10-
github.com/Antonboom/errname v0.1.13
10+
github.com/Antonboom/errname v1.0.0
1111
github.com/Antonboom/nilnil v0.1.9
1212
github.com/Antonboom/testifylint v1.5.0
1313
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/errname/testdata/errname.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ var (
1111
ErrEndOfFile = errors.New("end of file")
1212
errEndOfFile = errors.New("end of file")
1313

14-
EndOfFileError = errors.New("end of file") // want "the variable name `EndOfFileError` should conform to the `ErrXxx` format"
15-
ErrorEndOfFile = errors.New("end of file") // want "the variable name `ErrorEndOfFile` should conform to the `ErrXxx` format"
16-
EndOfFileErr = errors.New("end of file") // want "the variable name `EndOfFileErr` should conform to the `ErrXxx` format"
17-
endOfFileError = errors.New("end of file") // want "the variable name `endOfFileError` should conform to the `errXxx` format"
18-
errorEndOfFile = errors.New("end of file") // want "the variable name `errorEndOfFile` should conform to the `errXxx` format"
14+
EndOfFileError = errors.New("end of file") // want "the sentinel error name `EndOfFileError` should conform to the `ErrXxx` format"
15+
ErrorEndOfFile = errors.New("end of file") // want "the sentinel error name `ErrorEndOfFile` should conform to the `ErrXxx` format"
16+
EndOfFileErr = errors.New("end of file") // want "the sentinel error name `EndOfFileErr` should conform to the `ErrXxx` format"
17+
endOfFileError = errors.New("end of file") // want "the sentinel error name `endOfFileError` should conform to the `errXxx` format"
18+
errorEndOfFile = errors.New("end of file") // want "the sentinel error name `errorEndOfFile` should conform to the `errXxx` format"
1919
)
2020

2121
const maxSize = 256
@@ -24,8 +24,8 @@ var (
2424
ErrOutOfSize = fmt.Errorf("out of size (max %d)", maxSize)
2525
errOutOfSize = fmt.Errorf("out of size (max %d)", maxSize)
2626

27-
OutOfSizeError = fmt.Errorf("out of size (max %d)", maxSize) // want "the variable name `OutOfSizeError` should conform to the `ErrXxx` format"
28-
outOfSizeError = fmt.Errorf("out of size (max %d)", maxSize) // want "the variable name `outOfSizeError` should conform to the `errXxx` format"
27+
OutOfSizeError = fmt.Errorf("out of size (max %d)", maxSize) // want "the sentinel error name `OutOfSizeError` should conform to the `ErrXxx` format"
28+
outOfSizeError = fmt.Errorf("out of size (max %d)", maxSize) // want "the sentinel error name `outOfSizeError` should conform to the `errXxx` format"
2929
)
3030

3131
func errInsideFuncIsNotSentinel() error {
@@ -42,14 +42,14 @@ type DNSConfigError struct{}
4242

4343
func (D DNSConfigError) Error() string { return "DNS config error" }
4444

45-
type someTypeWithoutPtr struct{} // want "the type name `someTypeWithoutPtr` should conform to the `xxxError` format"
45+
type someTypeWithoutPtr struct{} // want "the error type name `someTypeWithoutPtr` should conform to the `xxxError` format"
4646
func (s someTypeWithoutPtr) Error() string { return "someTypeWithoutPtr" }
4747

48-
type SomeTypeWithoutPtr struct{} // want "the type name `SomeTypeWithoutPtr` should conform to the `XxxError` format"
48+
type SomeTypeWithoutPtr struct{} // want "the error type name `SomeTypeWithoutPtr` should conform to the `XxxError` format"
4949
func (s SomeTypeWithoutPtr) Error() string { return "SomeTypeWithoutPtr" }
5050

51-
type someTypeWithPtr struct{} // want "the type name `someTypeWithPtr` should conform to the `xxxError` format"
51+
type someTypeWithPtr struct{} // want "the error type name `someTypeWithPtr` should conform to the `xxxError` format"
5252
func (s *someTypeWithPtr) Error() string { return "someTypeWithPtr" }
5353

54-
type SomeTypeWithPtr struct{} // want "the type name `SomeTypeWithPtr` should conform to the `XxxError` format"
54+
type SomeTypeWithPtr struct{} // want "the error type name `SomeTypeWithPtr` should conform to the `XxxError` format"
5555
func (s *SomeTypeWithPtr) Error() string { return "SomeTypeWithPtr" }

0 commit comments

Comments
 (0)