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
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- "docs/**"

env:
GO_VERSION: 1.26.x
GO_VERSION: 1.27.x
WIX_VERSION: 5.0.0
PYTHON_VERSION: 3.7.9

Expand Down Expand Up @@ -230,9 +230,9 @@ jobs:
- name: Install golangci-lint
shell: bash
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
env:
GOLANGCI_LINT_VER: v2.9.0
GOLANGCI_LINT_VER: v2.14.0
- name: Lint
shell: bash
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true

env:
GO_VERSION: 1.26.x
GO_VERSION: 1.27.x
WIX_VERSION: 5.0.0
PYTHON_VERSION: 3.7.9

Expand Down Expand Up @@ -216,9 +216,9 @@ jobs:
- name: Install golangci-lint
shell: bash
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
env:
GOLANGCI_LINT_VER: v2.9.0
GOLANGCI_LINT_VER: v2.14.0
- name: Lint
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*'

env:
GO_VERSION: 1.26.x
GO_VERSION: 1.27.x
WIX_VERSION: 5.0.0
PYTHON_VERSION: 3.7.9

Expand Down
27 changes: 27 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,33 @@ linters:
- nolintlint
- staticcheck
- noctx
- goconst
- unparam
path: _test\.go
- linters:
- goconst
path: pkg/util/ports/iana_ports.go
- linters:
- goconst
path: pkg/event/flags.go
- linters:
- goconst
path: pkg/filter/ql/functions/(.+)\.go
- linters:
- goconst
path: pkg/filter/ql/parser.go
- linters:
- goconst
path: pkg/filter/ql/function.go
- linters:
- goconst
path: pkg/filter/fields/fields_windows.go
- linters:
- goconst
path: cmd/fibratus/app/list/list.go
- linters:
- goconst
path: cmd/fibratus/app/rules/list.go
paths:
- third_party$
- builtin$
Expand All @@ -53,3 +79,4 @@ formatters:
- third_party$
- builtin$
- examples$

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ require (
gopkg.in/yaml.v2 v2.3.0 // indirect
)

go 1.26.0
go 1.27.0
4 changes: 3 additions & 1 deletion make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ set PYTHON_URL=https://www.python.org/ftp/python/%PYTHON_VER%/python-%PYTHON_VER

set WIX_VERSION=5.0.0

set GOLANGCI_LINT_VERSION=2.14.0

set GOBIN=%USERPROFILE%\go\bin

set GOTEST=go test -timeout=10m -v -gcflags=all=-d=checkptr=0
Expand Down Expand Up @@ -80,7 +82,7 @@ goto :EOF
goto :EOF

:deps
go get -v -u github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
go get -v -u github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v%GOLANGCI_LINT_VERSION%
goto :EOF

:rsrc
Expand Down
2 changes: 1 addition & 1 deletion pkg/alertsender/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (a Alert) String(verbose bool) string {
b.WriteString("System event involved in this alert:\n\n")
}
for n, evt := range a.Events {
b.WriteString(fmt.Sprintf("\tEvent #%d:\n", n+1))
fmt.Fprintf(&b, "\tEvent #%d:\n", n+1)
b.WriteString(strings.TrimSuffix(evt.StringShort(), "\t"))
}
if a.Text == "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
func (c *Config) printArray(arr []interface{}) string {
var buffer bytes.Buffer
for v := range arr {
buffer.WriteString(fmt.Sprintf("%v;", v))
fmt.Fprintf(&buffer, "%v;", v)
}
return buffer.String()
}
Expand Down
Loading