Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # tag=v8.0.0
with:
version: v2.4.0
version: v2.5.0
args: --output.text.print-linter-name=true --output.text.colors=true --timeout 10m
working-directory: ${{matrix.working-directory}}
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ linters:
- goconst
- gocritic
- gocyclo
- godoclint
- goprintffuncname
- govet
- importas
- ineffassign
- iotamixing
- makezero
- misspell
- nakedret
Expand Down
1 change: 1 addition & 0 deletions examples/crd/pkg/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// Package pkg contains API Schema definitions for the chaosapps v1 API group
// +kubebuilder:object:generate=true
// +groupName=chaosapps.metamagical.io
package pkg
Expand Down
2 changes: 1 addition & 1 deletion examples/tokenreview/tokenreview.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
type authenticator struct {
}

// authenticator admits a request by the token.
// Handle admits a request by the token.
func (a *authenticator) Handle(ctx context.Context, req authentication.Request) authentication.Response {
if req.Spec.Token == "invalid" {
return authentication.Unauthenticated("invalid is an invalid token", v1.UserInfo{})
Expand Down
2 changes: 0 additions & 2 deletions pkg/log/zap/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// Package zap contains helpers for setting up a new logr.Logger instance
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there another godoc for this package already?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the same in a different file

// using the Zap logging framework.
package zap

import (
Expand Down
2 changes: 1 addition & 1 deletion pkg/reconcile/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ type terminalError struct {
err error
}

// This function will return nil if te.err is nil.
// Unwrap returns nil if te.err is nil.
func (te *terminalError) Unwrap() error {
return te.err
}
Expand Down