Skip to content

Commit 7358f39

Browse files
committed
Fix linter
1 parent e63f263 commit 7358f39

File tree

6 files changed

+27
-12
lines changed

6 files changed

+27
-12
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515
with:
1616
fetch-depth: 0 # Fetch all history for all branches and tags
1717
#

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
on:
2+
- workflow_dispatch
23
- push
34
- pull_request
45
name: golangci-lint
@@ -19,8 +20,8 @@ jobs:
1920
go-version: ${{ env.GO_VERSION }}
2021
check-latest: true
2122
- name: Checkout code
22-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2324
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@v6
25+
uses: golangci/golangci-lint-action@v8
2526
with:
26-
version: latest
27+
version: latest

.golangci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
1+
version: "2"
12
run:
23
tests: false
3-
44
linters:
5-
enable-all: false
5+
exclusions:
6+
generated: lax
7+
presets:
8+
- comments
9+
- common-false-positives
10+
- legacy
11+
- std-error-handling
12+
paths:
13+
- third_party$
14+
- builtin$
15+
- examples$
16+
formatters:
17+
exclusions:
18+
generated: lax
19+
paths:
20+
- third_party$
21+
- builtin$
22+
- examples$

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/mdouchement/standardfile
22

3-
go 1.23.0
4-
5-
toolchain go1.24.2
3+
go 1.25.0
64

75
require (
86
github.com/appleboy/gofight/v2 v2.1.2

internal/client/tui/item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (w *ItemEditor) UserInput(ev any, size gowid.IRenderSize, focus gowid.Selec
158158

159159
handled := w.Widget.UserInput(ev, size, focus, app)
160160
if handled {
161-
w.Widget.SetFocus(app, 0)
161+
w.SetFocus(app, 0)
162162
}
163163

164164
return handled

internal/server/service/user_20200115.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"github.com/labstack/echo/v4"
77
"github.com/mdouchement/standardfile/internal/model"
88
"github.com/mdouchement/standardfile/internal/server/serializer"
9-
"github.com/mdouchement/standardfile/internal/server/session"
109
sessionpkg "github.com/mdouchement/standardfile/internal/server/session"
1110
"github.com/mdouchement/standardfile/internal/sferror"
1211
"github.com/mdouchement/standardfile/pkg/libsf"
@@ -41,7 +40,7 @@ func (s *userService20200115) Password(user *model.User, params UpdatePasswordPa
4140
}
4241

4342
func (s *userService20200115) SuccessfulAuthentication(u *model.User, params Params, response M) (Render, error) {
44-
if !session.UserSupportsSessions(u) {
43+
if !sessionpkg.UserSupportsSessions(u) {
4544
return s.userService20161215.SuccessfulAuthentication(u, params, response)
4645
}
4746

0 commit comments

Comments
 (0)