Skip to content

Commit af12fe3

Browse files
authored
ci: enable perfsprint and goheader Go linters
1 parent dd44fbc commit af12fe3

File tree

6 files changed

+35
-9
lines changed

6 files changed

+35
-9
lines changed

.github/workflows/linters.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ jobs:
3030
with:
3131
go-version: stable
3232
- uses: golangci/golangci-lint-action@v8
33-
with:
34-
args: >
35-
--timeout 10m
36-
--disable errcheck
37-
--enable sqlclosecheck,misspell,whitespace,gocritic
3833
- name: Run gofmt linter
3934
run: gofmt -d -e .
4035

.golangci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: "2"
2+
linters:
3+
default: standard
4+
disable:
5+
- errcheck
6+
enable:
7+
- errname
8+
- gocritic
9+
- goheader
10+
- loggercheck
11+
- misspell
12+
- perfsprint
13+
- sqlclosecheck
14+
- staticcheck
15+
- whitespace
16+
settings:
17+
loggercheck:
18+
slog: true
19+
goheader:
20+
template: |-
21+
SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
22+
SPDX-License-Identifier: Apache-2.0

internal/integration/betula/betula.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
package betula
1+
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package betula // import "miniflux.app/v2/internal/integration/betula"
25

36
import (
47
"fmt"

internal/integration/linkace/linkace.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
package linkace
1+
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package linkace // import "miniflux.app/v2/internal/integration/linkace"
25

36
import (
47
"bytes"

internal/reader/fetcher/encoding_wrappers.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
package fetcher
1+
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package fetcher // import "miniflux.app/v2/internal/reader/fetcher"
25

36
import (
47
"compress/gzip"

internal/reader/filter/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
//
3+
44
// Package filter provides functions to filter entries based on user-defined rules.
55
//
66
// There are two types of rules:

0 commit comments

Comments
 (0)