Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fgksgf committed Nov 8, 2023
1 parent 3d7bbc0 commit 82b0a8a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 15 deletions.
9 changes: 2 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ linters-settings:
goconst:
min-len: 2
min-occurrences: 2
depguard:
list-type: blacklist
include-go-root: true
packages-with-error-messages:
fmt: "logging is allowed only by logutils.Log"
misspell:
locale: US
ignore-words:
Expand Down Expand Up @@ -98,7 +93,6 @@ linters-settings:
linters:
enable:
- deadcode
- depguard
- dogsled
- dupl
- errcheck
Expand All @@ -115,7 +109,6 @@ linters:
- ineffassign
- lll
- misspell
- nakedret
- staticcheck
- stylecheck
- typecheck
Expand All @@ -125,6 +118,8 @@ linters:
- whitespace
disable:
- structcheck
- depguard
- nakedret

service:
golangci-lint-version: 1.20.x
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ all: clean lint test build

.PHONY: lint
lint:
$(GO_LINT) version || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GO_PATH)/bin -d "v1.46.2"
$(GO_LINT) version || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GO_PATH)/bin -d "v1.55.2"
$(GO_LINT) run -v --timeout 5m ./...

.PHONY: fix-lint
Expand Down
2 changes: 1 addition & 1 deletion cmd/e2e/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//

package main

import (
Expand Down
2 changes: 1 addition & 1 deletion commands/cleanup/cleanup.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package cleanup

import (
Expand Down
2 changes: 1 addition & 1 deletion commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//

package commands

import (
Expand Down
2 changes: 1 addition & 1 deletion commands/run/run.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package run

import (
Expand Down
2 changes: 1 addition & 1 deletion commands/trigger/trigger.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package trigger

import (
Expand Down
2 changes: 1 addition & 1 deletion commands/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//

package commands

var version string
1 change: 1 addition & 0 deletions internal/components/trigger/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package trigger

import (
Expand Down
2 changes: 1 addition & 1 deletion internal/logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//

package logger

import (
Expand Down

0 comments on commit 82b0a8a

Please sign in to comment.