Skip to content

Commit 8b19a24

Browse files
committed
chore: disable linter on Windows temporarily
Caused by golangci/golangci-lint-action#119
1 parent af31db1 commit 8b19a24

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
os:
2121
- ubuntu-latest
2222
- macos-latest
23-
- windows-latest
23+
# - windows-latest
2424
name: Golangci-Lint
2525
runs-on: ${{ matrix.os }}
2626
steps:
@@ -29,4 +29,4 @@ jobs:
2929
uses: golangci/golangci-lint-action@v2
3030
with:
3131
version: v1.40
32-
args: -E goimports -E gocritic -E misspell -E revive
32+
args: -E gofumpt -E gocritic -E misspell -E revive

codec.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ type (
4242
}
4343

4444
// BuiltInFrameCodec is the built-in codec which will be assigned to gnet server when customized codec is not set up.
45-
BuiltInFrameCodec struct {
46-
}
45+
BuiltInFrameCodec struct{}
4746

4847
// LineBasedFrameCodec encodes/decodes line-separated frames into/from TCP stream.
49-
LineBasedFrameCodec struct {
50-
}
48+
LineBasedFrameCodec struct{}
5149

5250
// DelimiterBasedFrameCodec encodes/decodes specific-delimiter-separated frames into/from TCP stream.
5351
DelimiterBasedFrameCodec struct {

gnet.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ type (
187187
// EventServer is a built-in implementation of EventHandler which sets up each method with a default implementation,
188188
// you can compose it with your own implementation of EventHandler when you don't want to implement all methods
189189
// in EventHandler.
190-
EventServer struct {
191-
}
190+
EventServer struct{}
192191
)
193192

194193
// OnInitComplete fires when the server is ready for accepting connections.

0 commit comments

Comments
 (0)