mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-27 14:52:48 +00:00
Enable nolintlint
(#3158)
This commit is contained in:
parent
768fd71841
commit
1b380ff4b4
4 changed files with 10 additions and 9 deletions
|
@ -161,6 +161,7 @@ linters:
|
|||
- unparam
|
||||
- wastedassign
|
||||
- whitespace
|
||||
- nolintlint
|
||||
|
||||
run:
|
||||
timeout: 15m
|
||||
|
|
|
@ -25,7 +25,7 @@ func (err *ErrExtraHostFormat) Error() string {
|
|||
}
|
||||
|
||||
func (*ErrExtraHostFormat) Is(target error) bool {
|
||||
_, ok := target.(*ErrExtraHostFormat) //nolint:errorlint
|
||||
_, ok := target.(*ErrExtraHostFormat)
|
||||
return ok
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ func (err *ErrStepMissingDependency) Error() string {
|
|||
}
|
||||
|
||||
func (*ErrStepMissingDependency) Is(target error) bool {
|
||||
_, ok := target.(*ErrStepMissingDependency) //nolint:errorlint
|
||||
_, ok := target.(*ErrStepMissingDependency)
|
||||
return ok
|
||||
}
|
||||
|
||||
|
@ -52,6 +52,6 @@ func (err *ErrStepDependencyCycle) Error() string {
|
|||
}
|
||||
|
||||
func (*ErrStepDependencyCycle) Is(target error) bool {
|
||||
_, ok := target.(*ErrStepDependencyCycle) //nolint:errorlint
|
||||
_, ok := target.(*ErrStepDependencyCycle)
|
||||
return ok
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ func (err *ErrIgnoreEvent) Error() string {
|
|||
}
|
||||
|
||||
func (*ErrIgnoreEvent) Is(target error) bool {
|
||||
_, ok := target.(*ErrIgnoreEvent) //nolint:errorlint
|
||||
_, ok := target.(*ErrIgnoreEvent)
|
||||
return ok
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,6 @@ func (m *ErrConfigNotFound) Error() string {
|
|||
}
|
||||
|
||||
func (*ErrConfigNotFound) Is(target error) bool {
|
||||
_, ok := target.(*ErrConfigNotFound) //nolint:errorlint
|
||||
_, ok := target.(*ErrConfigNotFound)
|
||||
return ok
|
||||
}
|
||||
|
|
|
@ -25,9 +25,9 @@ func (e ErrNotFound) Error() string {
|
|||
}
|
||||
|
||||
func (e ErrNotFound) Is(target error) bool {
|
||||
_, ok := target.(ErrNotFound) //nolint:errorlint
|
||||
_, ok := target.(ErrNotFound)
|
||||
if !ok {
|
||||
_, ok = target.(*ErrNotFound) //nolint:errorlint
|
||||
_, ok = target.(*ErrNotFound)
|
||||
}
|
||||
return ok
|
||||
}
|
||||
|
@ -41,9 +41,9 @@ func (e ErrBadRequest) Error() string {
|
|||
}
|
||||
|
||||
func (e ErrBadRequest) Is(target error) bool {
|
||||
_, ok := target.(ErrBadRequest) //nolint:errorlint
|
||||
_, ok := target.(ErrBadRequest)
|
||||
if !ok {
|
||||
_, ok = target.(*ErrBadRequest) //nolint:errorlint
|
||||
_, ok = target.(*ErrBadRequest)
|
||||
}
|
||||
return ok
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue