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
4 changes: 1 addition & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ jobs:
- name: Lint Go Files
uses: golangci/golangci-lint-action@v8
with:
version: latest
# Check code only for the changed lines for PRs
only-new-issues: ${{ github.event_name == 'pull_request' && true || false }}
version: v2.2.1
args: --config=.golangci.yml

check_modules:
Expand Down
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ linters:
- -QF1003 # Convert if/else-if chain to tagged switch
- -S1008 # Simplify returning boolean expression
- -S1023 # Omit redundant control flow
revive:
rules:
- name: var-naming
arguments:
- []
- []
- - skip-package-name-checks: true
exclusions:
presets:
- comments
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/remoteconfig/state.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package remoteconfig //nolint:revive
package remoteconfig

import (
"time"
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/remoteconfig/types/remote_config_storage.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types //nolint:revive
package types

import (
"github.com/ddev/ddev/pkg/config/remoteconfig/internal"
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/state/types/state.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types //nolint:revive
package types

type StateEntry = interface{}
type StateEntryKey = string
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/state/types/state_storage.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types //nolint:revive
package types

// RawState is used to hold a weak type in-memory representation of the state.
type RawState = map[string]any
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/types/xhprof_mode.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types //nolint:revive
package types

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion pkg/globalconfig/types/types.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types //nolint:revive
package types

import "github.com/ddev/ddev/pkg/nodeps"

Expand Down
2 changes: 1 addition & 1 deletion pkg/globalconfig/xhprof_mode.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package globalconfig //nolint:revive
package globalconfig

import (
"github.com/ddev/ddev/pkg/config/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/errcheck.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package util //nolint:revive
package util

import (
"io"
Expand Down
Loading