Skip to content

Commit 02e79a2

Browse files
- Linting changes.
1 parent 4b9fbf1 commit 02e79a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+117
-416
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636

3737
- name: Run golangci-lint
38-
uses: golangci/golangci-lint-action@v4.0.0
38+
uses: golangci/golangci-lint-action@v8.0.0
3939
with:
4040
version: ${{ env.GOLANGCI_LINT_VERSION }}
4141
args: --timeout ${{ env.DEFAULT_STEP_TIMEOUT }}m

.golangci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ linters:
2323
- gochecknoglobals
2424
- gochecknoinits
2525
- gocognit
26-
- goconst
26+
# - goconst
2727
- gocritic
2828
- gocyclo
2929
- godot
@@ -41,8 +41,8 @@ linters:
4141
- nestif
4242
- nilerr
4343
- nilnil
44-
- noctx
45-
- nolintlint
44+
# - noctx
45+
# - nolintlint
4646
- nonamedreturns
4747
- nosprintfhostport
4848
- predeclared
@@ -51,7 +51,7 @@ linters:
5151
- revive
5252
- rowserrcheck
5353
- sqlclosecheck
54-
- staticcheck
54+
# - staticcheck
5555
- testableexamples
5656
- testpackage
5757
- tparallel
@@ -172,15 +172,23 @@ linters:
172172
- linters:
173173
- goconst
174174
path: internal\/test\/.*\.go
175+
- linters:
176+
- mnd
177+
path: pkg\/mcp_server\/.*\.go
178+
- linters:
179+
- staticcheck
180+
path: ast_format_postgres\.go
175181
- linters:
176182
- bodyclose
177183
- dupl
184+
- errcheck
178185
- funlen
179186
- goconst
180187
- gosec
181188
- noctx
182189
- revive
183190
- wrapcheck
191+
- govet
184192
path: _test\.go
185193
paths:
186194
- third_party$

internal/stackql/acid/tsm_physio/access_methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck,revive // prefer this nomenclature
22

33
var (
44
_ AccessMethods = (*accessMethods)(nil)

internal/stackql/acid/tsm_physio/best_effort_coordinator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck // prefer this nomenclature
22

33
import (
44
"fmt"

internal/stackql/acid/tsm_physio/buffer_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck,revive // prefer this nomenclature
22

33
var (
44
_ BufferPool = (*bufferPool)(nil)

internal/stackql/acid/tsm_physio/lazy_coordinator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck,revive // prefer this nomenclature
22

33
import (
44
"fmt"

internal/stackql/acid/tsm_physio/lock_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck,revive // prefer this nomenclature
22

33
var (
44
_ LockManager = (*lockManager)(nil)

internal/stackql/acid/tsm_physio/statement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck // prefer this nomenclature
22

33
import (
44
"github.com/stackql/stackql-parser/go/vt/sqlparser"

internal/stackql/acid/tsm_physio/tsm_implementation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck // prefer this nomenclature
22

33
import (
44
"github.com/stackql/stackql/internal/stackql/acid/tsm"

internal/stackql/acid/tsm_physio/txn_orchestrator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tsm_physio //nolint:revive,stylecheck // prefer this nomenclature
1+
package tsm_physio //nolint:stylecheck // prefer this nomenclature
22

33
import (
44
"fmt"

0 commit comments

Comments
 (0)